Changeset e29cc2e for trip-planner-front/node_modules/@babel/preset-modules
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- Location:
- trip-planner-front/node_modules/@babel/preset-modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@babel/preset-modules/README.md
r59329aa re29cc2e 140 140 ```js 141 141 terser.minify({ 142 ecma: 8,142 ecma: 2017, 143 143 safari10: true 144 144 }) … … 148 148 149 149 ```sh 150 terser --ecma 8--safari10 ...150 terser --ecma 2017 --safari10 ... 151 151 ``` 152 152 … … 159 159 new TerserPlugin({ 160 160 terserOptions: { 161 ecma: 8,161 ecma: 2017, 162 162 safari10: true 163 163 } -
trip-planner-front/node_modules/@babel/preset-modules/lib/plugins/transform-tagged-template-caching/index.js
r59329aa re29cc2e 32 32 33 33 if (!processed) { 34 processed = new Map();34 processed = new WeakSet(); 35 35 state.set("processed", processed); 36 36 } … … 55 55 56 56 57 const template = t.taggedTemplateExpression( identity, t.templateLiteral(path.node.quasi.quasis, expressions.map(() => t.numericLiteral(0))));58 processed. set(template, true); // Install an inline cache at the callsite using the global variable:57 const template = t.taggedTemplateExpression(t.cloneNode(identity), t.templateLiteral(path.node.quasi.quasis, expressions.map(() => t.numericLiteral(0)))); 58 processed.add(template); // Install an inline cache at the callsite using the global variable: 59 59 // _t || (_t = identity`a${0}`) 60 60 61 61 const ident = path.scope.getProgramParent().generateDeclaredUidIdentifier("t"); 62 62 path.scope.getBinding(ident.name).path.parent.kind = "let"; 63 const inlineCache = t.logicalExpression("||", ident, t.assignmentExpression("=", ident, template)); // The original tag function becomes a plain function call.63 const inlineCache = t.logicalExpression("||", ident, t.assignmentExpression("=", t.cloneNode(ident), template)); // The original tag function becomes a plain function call. 64 64 // The expressions omitted from the cached Strings tag are directly applied as arguments. 65 65 // tag(_t || (_t = Object`a${0}`), 'hello') -
trip-planner-front/node_modules/@babel/preset-modules/package.json
r59329aa re29cc2e 1 1 { 2 "_args": [ 3 [ 4 "@babel/preset-modules@0.1.4", 5 "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front" 6 ] 7 ], 8 "_development": true, 9 "_from": "@babel/preset-modules@0.1.4", 10 "_id": "@babel/preset-modules@0.1.4", 2 "_from": "@babel/preset-modules@^0.1.4", 3 "_id": "@babel/preset-modules@0.1.5", 11 4 "_inBundle": false, 12 "_integrity": "sha512- J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==",5 "_integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", 13 6 "_location": "/@babel/preset-modules", 14 7 "_phantomChildren": {}, 15 8 "_requested": { 16 "type": " version",9 "type": "range", 17 10 "registry": true, 18 "raw": "@babel/preset-modules@ 0.1.4",11 "raw": "@babel/preset-modules@^0.1.4", 19 12 "name": "@babel/preset-modules", 20 13 "escapedName": "@babel%2fpreset-modules", 21 14 "scope": "@babel", 22 "rawSpec": " 0.1.4",15 "rawSpec": "^0.1.4", 23 16 "saveSpec": null, 24 "fetchSpec": " 0.1.4"17 "fetchSpec": "^0.1.4" 25 18 }, 26 19 "_requiredBy": [ 27 20 "/@babel/preset-env" 28 21 ], 29 "_resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz", 30 "_spec": "0.1.4", 31 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front", 22 "_resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", 23 "_shasum": "ef939d6e7f268827e1841638dc6ff95515e115d9", 24 "_spec": "@babel/preset-modules@^0.1.4", 25 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\@babel\\preset-env", 32 26 "authors": [ 33 27 "Jason Miller <jason@developit.ca>" 34 28 ], 29 "bugs": { 30 "url": "https://github.com/babel/preset-modules/issues" 31 }, 32 "bundleDependencies": false, 35 33 "dependencies": { 36 34 "@babel/helper-plugin-utils": "^7.0.0", … … 40 38 "esutils": "^2.0.2" 41 39 }, 40 "deprecated": false, 42 41 "description": "A Babel preset that targets modern browsers by fixing engine bugs.", 43 42 "devDependencies": { … … 45 44 "@babel/core": "^7.7.2", 46 45 "@babel/helper-fixtures": "^7.6.3", 47 "@babel/helper-plugin-test-runner": "^7.1 .0",46 "@babel/helper-plugin-test-runner": "^7.14.5", 48 47 "@babel/plugin-transform-modules-commonjs": "^7.5.0", 49 48 "@babel/plugin-transform-react-jsx": "^7.7.0", … … 86 85 "lib" 87 86 ], 87 "homepage": "https://github.com/babel/preset-modules#readme", 88 88 "husky": { 89 89 "hooks": { … … 118 118 "@babel/core": "^7.0.0-0" 119 119 }, 120 "repository": { 121 "type": "git", 122 "url": "git+https://github.com/babel/preset-modules.git" 123 }, 120 124 "scripts": { 121 125 "build": "babel src -d lib --ignore '**/*.test.js'", … … 129 133 "watch:test": "jest --watch" 130 134 }, 131 "version": "0.1. 4"135 "version": "0.1.5" 132 136 } -
trip-planner-front/node_modules/@babel/preset-modules/src/plugins/transform-tagged-template-caching/index.js
r59329aa re29cc2e 24 24 let processed = state.get("processed"); 25 25 if (!processed) { 26 processed = new Map();26 processed = new WeakSet(); 27 27 state.set("processed", processed); 28 28 } … … 56 56 // identity`a${0}` 57 57 const template = t.taggedTemplateExpression( 58 identity,58 t.cloneNode(identity), 59 59 t.templateLiteral( 60 60 path.node.quasi.quasis, … … 62 62 ) 63 63 ); 64 processed. set(template, true);64 processed.add(template); 65 65 66 66 // Install an inline cache at the callsite using the global variable: … … 73 73 "||", 74 74 ident, 75 t.assignmentExpression("=", ident, template)75 t.assignmentExpression("=", t.cloneNode(ident), template) 76 76 ); 77 77
Note:
See TracChangeset
for help on using the changeset viewer.