xiaoz
3 years ago
commit
db49ff5e85
20289 changed files with 2189926 additions and 0 deletions
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
# hello-world |
||||
|
||||
## Project setup |
||||
``` |
||||
npm install |
||||
``` |
||||
|
||||
### Compiles and hot-reloads for development |
||||
``` |
||||
npm run serve |
||||
``` |
||||
|
||||
### Compiles and minifies for production |
||||
``` |
||||
npm run build |
||||
``` |
||||
|
||||
### Lints and fixes files |
||||
``` |
||||
npm run lint |
||||
``` |
||||
|
||||
### Customize configuration |
||||
See [Configuration Reference](https://cli.vuejs.org/config/). |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
module.exports = { |
||||
presets: [ |
||||
'@vue/cli-plugin-babel/preset' |
||||
] |
||||
} |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
{ |
||||
"compilerOptions": { |
||||
"target": "es5", |
||||
"module": "esnext", |
||||
"baseUrl": "./", |
||||
"moduleResolution": "node", |
||||
"paths": { |
||||
"@/*": [ |
||||
"src/*" |
||||
] |
||||
}, |
||||
"lib": [ |
||||
"esnext", |
||||
"dom", |
||||
"dom.iterable", |
||||
"scripthost" |
||||
] |
||||
} |
||||
} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../acorn/bin/acorn |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../ansi-html-community/bin/ansi-html |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../autoprefixer/bin/autoprefixer |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../browserslist/cli.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../cssesc/bin/cssesc |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../eslint/bin/eslint.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../esprima/bin/esparse.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../esprima/bin/esvalidate.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../he/bin/he |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../cli-highlight/bin/highlight |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../html-minifier-terser/cli.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../is-ci/bin.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../is-docker/cli.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../js-yaml/bin/js-yaml.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../jsesc/bin/jsesc |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../json5/lib/cli.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../mime/cli.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../mkdirp/bin/cmd.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../multicast-dns/cli.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../nanoid/bin/nanoid.cjs |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../opener/bin/opener-bin.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../@babel/parser/bin/babel-parser.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../prettier/bin-prettier.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../regjsparser/bin/parser |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../resolve/bin/resolve |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../rimraf/bin.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../semver/bin/semver.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../svgo/bin/svgo |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../terser/bin/terser |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../uuid/dist/bin/uuid |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../@vue/cli-service/bin/vue-cli-service.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../webpack/bin/webpack.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../webpack-bundle-analyzer/lib/bin/analyzer.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../webpack-dev-server/bin/webpack-dev-server.js |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
../which/bin/which |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n name: 'HelloWorld',\n props: {\n msg: String\n }\n};","map":{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA;AACAA,oBADA;AAEAC;AACAC;AADA;AAFA","names":["name","props","msg"],"sourceRoot":"src/components","sources":["HelloWorld.vue"],"sourcesContent":["<template>\n <div class=\"hello\">\n <h1>{{ msg }}</h1>\n <p>\n For a guide and recipes on how to configure / customize this project,<br>\n check out the\n <a href=\"https://cli.vuejs.org\" target=\"_blank\" rel=\"noopener\">vue-cli documentation</a>.\n </p>\n <h3>Installed CLI Plugins</h3>\n <ul>\n <li><a href=\"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel\" target=\"_blank\" rel=\"noopener\">babel</a></li>\n <li><a href=\"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint\" target=\"_blank\" rel=\"noopener\">eslint</a></li>\n </ul>\n <h3>Essential Links</h3>\n <ul>\n <li><a href=\"https://vuejs.org\" target=\"_blank\" rel=\"noopener\">Core Docs</a></li>\n <li><a href=\"https://forum.vuejs.org\" target=\"_blank\" rel=\"noopener\">Forum</a></li>\n <li><a href=\"https://chat.vuejs.org\" target=\"_blank\" rel=\"noopener\">Community Chat</a></li>\n <li><a href=\"https://twitter.com/vuejs\" target=\"_blank\" rel=\"noopener\">Twitter</a></li>\n <li><a href=\"https://news.vuejs.org\" target=\"_blank\" rel=\"noopener\">News</a></li>\n </ul>\n <h3>Ecosystem</h3>\n <ul>\n <li><a href=\"https://router.vuejs.org\" target=\"_blank\" rel=\"noopener\">vue-router</a></li>\n <li><a href=\"https://vuex.vuejs.org\" target=\"_blank\" rel=\"noopener\">vuex</a></li>\n <li><a href=\"https://github.com/vuejs/vue-devtools#vue-devtools\" target=\"_blank\" rel=\"noopener\">vue-devtools</a></li>\n <li><a href=\"https://vue-loader.vuejs.org\" target=\"_blank\" rel=\"noopener\">vue-loader</a></li>\n <li><a href=\"https://github.com/vuejs/awesome-vue\" target=\"_blank\" rel=\"noopener\">awesome-vue</a></li>\n </ul>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'HelloWorld',\n props: {\n msg: String\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\nh3 {\n margin: 40px 0 0;\n}\nul {\n list-style-type: none;\n padding: 0;\n}\nli {\n display: inline-block;\n margin: 0 10px;\n}\na {\n color: #42b983;\n}\n</style>\n"]},"metadata":{},"sourceType":"module"} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.numericUnicodeMap = {\n 0: 65533,\n 128: 8364,\n 130: 8218,\n 131: 402,\n 132: 8222,\n 133: 8230,\n 134: 8224,\n 135: 8225,\n 136: 710,\n 137: 8240,\n 138: 352,\n 139: 8249,\n 140: 338,\n 142: 381,\n 145: 8216,\n 146: 8217,\n 147: 8220,\n 148: 8221,\n 149: 8226,\n 150: 8211,\n 151: 8212,\n 152: 732,\n 153: 8482,\n 154: 353,\n 155: 8250,\n 156: 339,\n 158: 382,\n 159: 376\n};","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/html-entities/lib/numeric-unicode-map.js"],"names":["Object","defineProperty","exports","value","numericUnicodeMap"],"mappings":"AAAA;;AAAaA,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA8B,YAA9B,EAA2C;AAACC,EAAAA,KAAK,EAAC;AAAP,CAA3C;AAAyDD,OAAO,CAACE,iBAAR,GAA0B;AAAC,KAAE,KAAH;AAAS,OAAI,IAAb;AAAkB,OAAI,IAAtB;AAA2B,OAAI,GAA/B;AAAmC,OAAI,IAAvC;AAA4C,OAAI,IAAhD;AAAqD,OAAI,IAAzD;AAA8D,OAAI,IAAlE;AAAuE,OAAI,GAA3E;AAA+E,OAAI,IAAnF;AAAwF,OAAI,GAA5F;AAAgG,OAAI,IAApG;AAAyG,OAAI,GAA7G;AAAiH,OAAI,GAArH;AAAyH,OAAI,IAA7H;AAAkI,OAAI,IAAtI;AAA2I,OAAI,IAA/I;AAAoJ,OAAI,IAAxJ;AAA6J,OAAI,IAAjK;AAAsK,OAAI,IAA1K;AAA+K,OAAI,IAAnL;AAAwL,OAAI,GAA5L;AAAgM,OAAI,IAApM;AAAyM,OAAI,GAA7M;AAAiN,OAAI,IAArN;AAA0N,OAAI,GAA9N;AAAkO,OAAI,GAAtO;AAA0O,OAAI;AAA9O,CAA1B","sourcesContent":["\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.numericUnicodeMap={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};"]},"metadata":{},"sourceType":"script"} |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"\"use strict\";\n\nrequire(\"core-js/modules/es.string.from-code-point.js\");\n\nrequire(\"core-js/modules/es.string.code-point-at.js\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.fromCodePoint = String.fromCodePoint || function (astralCodePoint) {\n return String.fromCharCode(Math.floor((astralCodePoint - 65536) / 1024) + 55296, (astralCodePoint - 65536) % 1024 + 56320);\n};\n\nexports.getCodePoint = String.prototype.codePointAt ? function (input, position) {\n return input.codePointAt(position);\n} : function (input, position) {\n return (input.charCodeAt(position) - 55296) * 1024 + input.charCodeAt(position + 1) - 56320 + 65536;\n};\nexports.highSurrogateFrom = 55296;\nexports.highSurrogateTo = 56319;","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/html-entities/lib/surrogate-pairs.js"],"names":["Object","defineProperty","exports","value","fromCodePoint","String","astralCodePoint","fromCharCode","Math","floor","getCodePoint","prototype","codePointAt","input","position","charCodeAt","highSurrogateFrom","highSurrogateTo"],"mappings":"AAAA;;;;;;AAAaA,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA8B,YAA9B,EAA2C;AAACC,EAAAA,KAAK,EAAC;AAAP,CAA3C;;AAAyDD,OAAO,CAACE,aAAR,GAAsBC,MAAM,CAACD,aAAP,IAAsB,UAASE,eAAT,EAAyB;AAAC,SAAOD,MAAM,CAACE,YAAP,CAAoBC,IAAI,CAACC,KAAL,CAAW,CAACH,eAAe,GAAC,KAAjB,IAAwB,IAAnC,IAAyC,KAA7D,EAAmE,CAACA,eAAe,GAAC,KAAjB,IAAwB,IAAxB,GAA6B,KAAhG,CAAP;AAA8G,CAApL;;AAAqLJ,OAAO,CAACQ,YAAR,GAAqBL,MAAM,CAACM,SAAP,CAAiBC,WAAjB,GAA6B,UAASC,KAAT,EAAeC,QAAf,EAAwB;AAAC,SAAOD,KAAK,CAACD,WAAN,CAAkBE,QAAlB,CAAP;AAAmC,CAAzF,GAA0F,UAASD,KAAT,EAAeC,QAAf,EAAwB;AAAC,SAAM,CAACD,KAAK,CAACE,UAAN,CAAiBD,QAAjB,IAA2B,KAA5B,IAAmC,IAAnC,GAAwCD,KAAK,CAACE,UAAN,CAAiBD,QAAQ,GAAC,CAA1B,CAAxC,GAAqE,KAArE,GAA2E,KAAjF;AAAuF,CAA/N;AAAgOZ,OAAO,CAACc,iBAAR,GAA0B,KAA1B;AAAgCd,OAAO,CAACe,eAAR,GAAwB,KAAxB","sourcesContent":["\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.fromCodePoint=String.fromCodePoint||function(astralCodePoint){return String.fromCharCode(Math.floor((astralCodePoint-65536)/1024)+55296,(astralCodePoint-65536)%1024+56320)};exports.getCodePoint=String.prototype.codePointAt?function(input,position){return input.codePointAt(position)}:function(input,position){return(input.charCodeAt(position)-55296)*1024+input.charCodeAt(position+1)-56320+65536};exports.highSurrogateFrom=55296;exports.highSurrogateTo=56319;"]},"metadata":{},"sourceType":"script"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import \"/tmp/vue-hello/node_modules/core-js/modules/es.array.iterator.js\";\nimport \"/tmp/vue-hello/node_modules/core-js/modules/es.promise.js\";\nimport \"/tmp/vue-hello/node_modules/core-js/modules/es.object.assign.js\";\nimport \"/tmp/vue-hello/node_modules/core-js/modules/es.promise.finally.js\";\nimport Vue from 'vue';\nimport App from './App.vue';\nVue.config.productionTip = false;\nnew Vue({\n render: function render(h) {\n return h(App);\n }\n}).$mount('#app');","map":{"version":3,"sources":["/tmp/vue-hello/src/main.js"],"names":["Vue","App","config","productionTip","render","h","$mount"],"mappings":";;;;AAAA,OAAOA,GAAP,MAAgB,KAAhB;AACA,OAAOC,GAAP,MAAgB,WAAhB;AAEAD,GAAG,CAACE,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AAEA,IAAIH,GAAJ,CAAQ;AACNI,EAAAA,MAAM,EAAE,gBAAAC,CAAC;AAAA,WAAIA,CAAC,CAACJ,GAAD,CAAL;AAAA;AADH,CAAR,EAEGK,MAFH,CAEU,MAFV","sourcesContent":["import Vue from 'vue'\nimport App from './App.vue'\n\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n}).$mount('#app')\n"]},"metadata":{},"sourceType":"module"} |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import Vue from 'vue';\nimport App from './App.vue';\nVue.config.productionTip = false;\nnew Vue({\n render: h => h(App)\n}).$mount('#app');","map":{"version":3,"sources":["/tmp/vue-hello/src/main.js"],"names":["Vue","App","config","productionTip","render","h","$mount"],"mappings":"AAAA,OAAOA,GAAP,MAAgB,KAAhB;AACA,OAAOC,GAAP,MAAgB,WAAhB;AAEAD,GAAG,CAACE,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AAEA,IAAIH,GAAJ,CAAQ;AACNI,EAAAA,MAAM,EAAEC,CAAC,IAAIA,CAAC,CAACJ,GAAD;AADR,CAAR,EAEGK,MAFH,CAEU,MAFV","sourcesContent":["import Vue from 'vue'\nimport App from './App.vue'\n\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n}).$mount('#app')\n"]},"metadata":{},"sourceType":"module"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n name: 'HelloWorld',\n props: {\n msg: String\n }\n};","map":{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA;AACAA,oBADA;AAEAC;AACAC;AADA;AAFA","names":["name","props","msg"],"sourceRoot":"src/components","sources":["HelloWorld.vue"],"sourcesContent":["<template>\n <div class=\"hello\">\n <h1>{{ msg }}</h1>\n <p>\n For a guide and recipes on how to configure / customize this project,<br>\n check out the\n <a href=\"https://cli.vuejs.org\" target=\"_blank\" rel=\"noopener\">vue-cli documentation</a>.\n </p>\n <h3>Installed CLI Plugins</h3>\n <ul>\n <li><a href=\"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel\" target=\"_blank\" rel=\"noopener\">babel</a></li>\n <li><a href=\"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint\" target=\"_blank\" rel=\"noopener\">eslint</a></li>\n </ul>\n <h3>Essential Links</h3>\n <ul>\n <li><a href=\"https://vuejs.org\" target=\"_blank\" rel=\"noopener\">Core Docs</a></li>\n <li><a href=\"https://forum.vuejs.org\" target=\"_blank\" rel=\"noopener\">Forum</a></li>\n <li><a href=\"https://chat.vuejs.org\" target=\"_blank\" rel=\"noopener\">Community Chat</a></li>\n <li><a href=\"https://twitter.com/vuejs\" target=\"_blank\" rel=\"noopener\">Twitter</a></li>\n <li><a href=\"https://news.vuejs.org\" target=\"_blank\" rel=\"noopener\">News</a></li>\n </ul>\n <h3>Ecosystem</h3>\n <ul>\n <li><a href=\"https://router.vuejs.org\" target=\"_blank\" rel=\"noopener\">vue-router</a></li>\n <li><a href=\"https://vuex.vuejs.org\" target=\"_blank\" rel=\"noopener\">vuex</a></li>\n <li><a href=\"https://github.com/vuejs/vue-devtools#vue-devtools\" target=\"_blank\" rel=\"noopener\">vue-devtools</a></li>\n <li><a href=\"https://vue-loader.vuejs.org\" target=\"_blank\" rel=\"noopener\">vue-loader</a></li>\n <li><a href=\"https://github.com/vuejs/awesome-vue\" target=\"_blank\" rel=\"noopener\">awesome-vue</a></li>\n </ul>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'HelloWorld',\n props: {\n msg: String\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\nh3 {\n margin: 40px 0 0;\n}\nul {\n list-style-type: none;\n padding: 0;\n}\nli {\n display: inline-block;\n margin: 0 10px;\n}\na {\n color: #42b983;\n}\n</style>\n"]},"metadata":{},"sourceType":"module"} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import \"/tmp/vue-hello/node_modules/core-js/modules/es.array.iterator.js\";\nimport \"/tmp/vue-hello/node_modules/core-js/modules/es.promise.js\";\nimport \"/tmp/vue-hello/node_modules/core-js/modules/es.object.assign.js\";\nimport \"/tmp/vue-hello/node_modules/core-js/modules/es.promise.finally.js\";\nimport Vue from 'vue';\nimport App from './App.vue';\nVue.config.productionTip = false;\nnew Vue({\n render: function render(h) {\n return h(App);\n }\n}).$mount('#app');","map":{"version":3,"sources":["/tmp/vue-hello/src/main.js"],"names":["Vue","App","config","productionTip","render","h","$mount"],"mappings":";;;;AAAA,OAAOA,GAAP,MAAgB,KAAhB;AACA,OAAOC,GAAP,MAAgB,WAAhB;AAEAD,GAAG,CAACE,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AAEA,IAAIH,GAAJ,CAAQ;AACNI,EAAAA,MAAM,EAAE,gBAAAC,CAAC;AAAA,WAAIA,CAAC,CAACJ,GAAD,CAAL;AAAA;AADH,CAAR,EAEGK,MAFH,CAEU,MAFV","sourcesContent":["import Vue from 'vue'\nimport App from './App.vue'\n\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n}).$mount('#app')\n"]},"metadata":{},"sourceType":"module"} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"//\n//\n//\n//\n//\n//\n//\nimport HelloWorld from './components/HelloWorld.vue';\nexport default {\n name: 'App',\n components: {\n HelloWorld: HelloWorld\n }\n};","map":{"version":3,"mappings":";;;;;;;AAQA;AAEA;AACAA,aADA;AAEAC;AACAC;AADA;AAFA","names":["name","components","HelloWorld"],"sourceRoot":"src","sources":["App.vue"],"sourcesContent":["<template>\n <div id=\"app\">\n <img alt=\"Vue logo\" src=\"./assets/logo.png\">\n <HelloWorld msg=\"Welcome to Your Vue.js App\"/>\n </div>\n</template>\n\n<script>\nimport HelloWorld from './components/HelloWorld.vue'\n\nexport default {\n name: 'App',\n components: {\n HelloWorld\n }\n}\n</script>\n\n<style>\n#app {\n font-family: Avenir, Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-align: center;\n color: #2c3e50;\n margin-top: 60px;\n}\n</style>\n"]},"metadata":{},"sourceType":"module"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import logger from \"../modules/logger/index.js\";\nvar name = \"webpack-dev-server\"; // default level is set on the client side, so it does not need\n// to be set by the CLI or API\n\nvar defaultLevel = \"info\"; // options new options, merge with old options\n\n/**\n * @param {false | true | \"none\" | \"error\" | \"warn\" | \"info\" | \"log\" | \"verbose\"} level\n * @returns {void}\n */\n\nfunction setLogLevel(level) {\n logger.configureDefaultLogger({\n level: level\n });\n}\n\nsetLogLevel(defaultLevel);\nvar log = logger.getLogger(name);\nexport { log, setLogLevel };","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/webpack-dev-server/client/utils/log.js"],"names":["logger","name","defaultLevel","setLogLevel","level","configureDefaultLogger","log","getLogger"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,4BAAnB;AACA,IAAIC,IAAI,GAAG,oBAAX,C,CAAiC;AACjC;;AAEA,IAAIC,YAAY,GAAG,MAAnB,C,CAA2B;;AAE3B;AACA;AACA;AACA;;AAEA,SAASC,WAAT,CAAqBC,KAArB,EAA4B;AAC1BJ,EAAAA,MAAM,CAACK,sBAAP,CAA8B;AAC5BD,IAAAA,KAAK,EAAEA;AADqB,GAA9B;AAGD;;AAEDD,WAAW,CAACD,YAAD,CAAX;AACA,IAAII,GAAG,GAAGN,MAAM,CAACO,SAAP,CAAiBN,IAAjB,CAAV;AACA,SAASK,GAAT,EAAcH,WAAd","sourcesContent":["import logger from \"../modules/logger/index.js\";\nvar name = \"webpack-dev-server\"; // default level is set on the client side, so it does not need\n// to be set by the CLI or API\n\nvar defaultLevel = \"info\"; // options new options, merge with old options\n\n/**\n * @param {false | true | \"none\" | \"error\" | \"warn\" | \"info\" | \"log\" | \"verbose\"} level\n * @returns {void}\n */\n\nfunction setLogLevel(level) {\n logger.configureDefaultLogger({\n level: level\n });\n}\n\nsetLogLevel(defaultLevel);\nvar log = logger.getLogger(name);\nexport { log, setLogLevel };"]},"metadata":{},"sourceType":"module"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"//\n//\n//\n//\n//\n//\n//\nimport HelloWorld from './components/HelloWorld.vue';\nexport default {\n name: 'App',\n components: {\n HelloWorld\n }\n};","map":{"version":3,"mappings":";;;;;;;AAQA;AAEA;AACAA,aADA;AAEAC;AACAC;AADA;AAFA","names":["name","components","HelloWorld"],"sourceRoot":"src","sources":["App.vue"],"sourcesContent":["<template>\n <div id=\"app\">\n <img alt=\"Vue logo\" src=\"./assets/logo.png\">\n <HelloWorld msg=\"Welcome to Your Vue.js App\"/>\n </div>\n</template>\n\n<script>\nimport HelloWorld from './components/HelloWorld.vue'\n\nexport default {\n name: 'App',\n components: {\n HelloWorld\n }\n}\n</script>\n\n<style>\n#app {\n font-family: Avenir, Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-align: center;\n color: #2c3e50;\n margin-top: 60px;\n}\n</style>\n"]},"metadata":{},"sourceType":"module"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"require(\"core-js/modules/es.symbol.js\");\n\nrequire(\"core-js/modules/es.symbol.description.js\");\n\nrequire(\"core-js/modules/es.object.to-string.js\");\n\nrequire(\"core-js/modules/es.symbol.iterator.js\");\n\nrequire(\"core-js/modules/es.string.iterator.js\");\n\nrequire(\"core-js/modules/web.dom-collections.iterator.js\");\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\n\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/@babel/runtime/helpers/typeof.js"],"names":["_typeof","obj","module","exports","Symbol","iterator","constructor","prototype","__esModule"],"mappings":";;;;;;;;;;;;AAAA,SAASA,OAAT,CAAiBC,GAAjB,EAAsB;AACpB;;AAEA,SAAO,CAACC,MAAM,CAACC,OAAP,GAAiBH,OAAO,GAAG,cAAc,OAAOI,MAArB,IAA+B,YAAY,OAAOA,MAAM,CAACC,QAAzD,GAAoE,UAAUJ,GAAV,EAAe;AACpH,WAAO,OAAOA,GAAd;AACD,GAFkC,GAE/B,UAAUA,GAAV,EAAe;AACjB,WAAOA,GAAG,IAAI,cAAc,OAAOG,MAA5B,IAAsCH,GAAG,CAACK,WAAJ,KAAoBF,MAA1D,IAAoEH,GAAG,KAAKG,MAAM,CAACG,SAAnF,GAA+F,QAA/F,GAA0G,OAAON,GAAxH;AACD,GAJO,EAILC,MAAM,CAACC,OAAP,CAAeK,UAAf,GAA4B,IAJvB,EAI6BN,MAAM,CAACC,OAAP,CAAe,SAAf,IAA4BD,MAAM,CAACC,OAJjE,GAI2EH,OAAO,CAACC,GAAD,CAJzF;AAKD;;AAEDC,MAAM,CAACC,OAAP,GAAiBH,OAAjB,EAA0BE,MAAM,CAACC,OAAP,CAAeK,UAAf,GAA4B,IAAtD,EAA4DN,MAAM,CAACC,OAAP,CAAe,SAAf,IAA4BD,MAAM,CAACC,OAA/F","sourcesContent":["function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\n\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"]},"metadata":{},"sourceType":"script"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import \"core-js/modules/es.array.filter.js\";\nimport \"core-js/modules/es.object.to-string.js\";\nimport \"core-js/modules/es.error.cause.js\";\n\n/**\n * @returns {string}\n */\nfunction getCurrentScriptSource() {\n // `document.currentScript` is the most accurate way to find the current script,\n // but is not supported in all browsers.\n if (document.currentScript) {\n return document.currentScript.getAttribute(\"src\");\n } // Fallback to getting all scripts running in the document.\n\n\n var scriptElements = document.scripts || [];\n var scriptElementsWithSrc = Array.prototype.filter.call(scriptElements, function (element) {\n return element.getAttribute(\"src\");\n });\n\n if (scriptElementsWithSrc.length > 0) {\n var currentScript = scriptElementsWithSrc[scriptElementsWithSrc.length - 1];\n return currentScript.getAttribute(\"src\");\n } // Fail as there was no script to use.\n\n\n throw new Error(\"[webpack-dev-server] Failed to get current script source.\");\n}\n\nexport default getCurrentScriptSource;","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/webpack-dev-server/client/utils/getCurrentScriptSource.js"],"names":["getCurrentScriptSource","document","currentScript","getAttribute","scriptElements","scripts","scriptElementsWithSrc","Array","prototype","filter","call","element","length","Error"],"mappings":";;;;AAAA;AACA;AACA;AACA,SAASA,sBAAT,GAAkC;AAChC;AACA;AACA,MAAIC,QAAQ,CAACC,aAAb,EAA4B;AAC1B,WAAOD,QAAQ,CAACC,aAAT,CAAuBC,YAAvB,CAAoC,KAApC,CAAP;AACD,GAL+B,CAK9B;;;AAGF,MAAIC,cAAc,GAAGH,QAAQ,CAACI,OAAT,IAAoB,EAAzC;AACA,MAAIC,qBAAqB,GAAGC,KAAK,CAACC,SAAN,CAAgBC,MAAhB,CAAuBC,IAAvB,CAA4BN,cAA5B,EAA4C,UAAUO,OAAV,EAAmB;AACzF,WAAOA,OAAO,CAACR,YAAR,CAAqB,KAArB,CAAP;AACD,GAF2B,CAA5B;;AAIA,MAAIG,qBAAqB,CAACM,MAAtB,GAA+B,CAAnC,EAAsC;AACpC,QAAIV,aAAa,GAAGI,qBAAqB,CAACA,qBAAqB,CAACM,MAAtB,GAA+B,CAAhC,CAAzC;AACA,WAAOV,aAAa,CAACC,YAAd,CAA2B,KAA3B,CAAP;AACD,GAhB+B,CAgB9B;;;AAGF,QAAM,IAAIU,KAAJ,CAAU,2DAAV,CAAN;AACD;;AAED,eAAeb,sBAAf","sourcesContent":["/**\n * @returns {string}\n */\nfunction getCurrentScriptSource() {\n // `document.currentScript` is the most accurate way to find the current script,\n // but is not supported in all browsers.\n if (document.currentScript) {\n return document.currentScript.getAttribute(\"src\");\n } // Fallback to getting all scripts running in the document.\n\n\n var scriptElements = document.scripts || [];\n var scriptElementsWithSrc = Array.prototype.filter.call(scriptElements, function (element) {\n return element.getAttribute(\"src\");\n });\n\n if (scriptElementsWithSrc.length > 0) {\n var currentScript = scriptElementsWithSrc[scriptElementsWithSrc.length - 1];\n return currentScript.getAttribute(\"src\");\n } // Fail as there was no script to use.\n\n\n throw new Error(\"[webpack-dev-server] Failed to get current script source.\");\n}\n\nexport default getCurrentScriptSource;"]},"metadata":{},"sourceType":"module"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import \"core-js/modules/es.regexp.exec.js\";\nimport \"core-js/modules/es.string.split.js\";\nimport \"core-js/modules/es.object.to-string.js\";\nimport \"core-js/modules/es.string.iterator.js\";\nimport \"core-js/modules/web.dom-collections.iterator.js\";\nimport \"core-js/modules/web.url.js\";\nimport \"core-js/modules/web.url-search-params.js\";\nimport getCurrentScriptSource from \"./getCurrentScriptSource.js\";\n/**\n * @param {string} resourceQuery\n * @returns {{ [key: string]: string | boolean }}\n */\n\nfunction parseURL(resourceQuery) {\n /** @type {{ [key: string]: string }} */\n var options = {};\n\n if (typeof resourceQuery === \"string\" && resourceQuery !== \"\") {\n var searchParams = resourceQuery.substr(1).split(\"&\");\n\n for (var i = 0; i < searchParams.length; i++) {\n var pair = searchParams[i].split(\"=\");\n options[pair[0]] = decodeURIComponent(pair[1]);\n }\n } else {\n // Else, get the url from the <script> this file was called with.\n var scriptSource = getCurrentScriptSource();\n var scriptSourceURL;\n\n try {\n // The placeholder `baseURL` with `window.location.href`,\n // is to allow parsing of path-relative or protocol-relative URLs,\n // and will have no effect if `scriptSource` is a fully valid URL.\n scriptSourceURL = new URL(scriptSource, self.location.href);\n } catch (error) {// URL parsing failed, do nothing.\n // We will still proceed to see if we can recover using `resourceQuery`\n }\n\n if (scriptSourceURL) {\n options = scriptSourceURL;\n options.fromCurrentScript = true;\n }\n }\n\n return options;\n}\n\nexport default parseURL;","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/webpack-dev-server/client/utils/parseURL.js"],"names":["getCurrentScriptSource","parseURL","resourceQuery","options","searchParams","substr","split","i","length","pair","decodeURIComponent","scriptSource","scriptSourceURL","URL","self","location","href","error","fromCurrentScript"],"mappings":";;;;;;;AAAA,OAAOA,sBAAP,MAAmC,6BAAnC;AACA;AACA;AACA;AACA;;AAEA,SAASC,QAAT,CAAkBC,aAAlB,EAAiC;AAC/B;AACA,MAAIC,OAAO,GAAG,EAAd;;AAEA,MAAI,OAAOD,aAAP,KAAyB,QAAzB,IAAqCA,aAAa,KAAK,EAA3D,EAA+D;AAC7D,QAAIE,YAAY,GAAGF,aAAa,CAACG,MAAd,CAAqB,CAArB,EAAwBC,KAAxB,CAA8B,GAA9B,CAAnB;;AAEA,SAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGH,YAAY,CAACI,MAAjC,EAAyCD,CAAC,EAA1C,EAA8C;AAC5C,UAAIE,IAAI,GAAGL,YAAY,CAACG,CAAD,CAAZ,CAAgBD,KAAhB,CAAsB,GAAtB,CAAX;AACAH,MAAAA,OAAO,CAACM,IAAI,CAAC,CAAD,CAAL,CAAP,GAAmBC,kBAAkB,CAACD,IAAI,CAAC,CAAD,CAAL,CAArC;AACD;AACF,GAPD,MAOO;AACL;AACA,QAAIE,YAAY,GAAGX,sBAAsB,EAAzC;AACA,QAAIY,eAAJ;;AAEA,QAAI;AACF;AACA;AACA;AACAA,MAAAA,eAAe,GAAG,IAAIC,GAAJ,CAAQF,YAAR,EAAsBG,IAAI,CAACC,QAAL,CAAcC,IAApC,CAAlB;AACD,KALD,CAKE,OAAOC,KAAP,EAAc,CAAC;AACf;AACD;;AAED,QAAIL,eAAJ,EAAqB;AACnBT,MAAAA,OAAO,GAAGS,eAAV;AACAT,MAAAA,OAAO,CAACe,iBAAR,GAA4B,IAA5B;AACD;AACF;;AAED,SAAOf,OAAP;AACD;;AAED,eAAeF,QAAf","sourcesContent":["import getCurrentScriptSource from \"./getCurrentScriptSource.js\";\n/**\n * @param {string} resourceQuery\n * @returns {{ [key: string]: string | boolean }}\n */\n\nfunction parseURL(resourceQuery) {\n /** @type {{ [key: string]: string }} */\n var options = {};\n\n if (typeof resourceQuery === \"string\" && resourceQuery !== \"\") {\n var searchParams = resourceQuery.substr(1).split(\"&\");\n\n for (var i = 0; i < searchParams.length; i++) {\n var pair = searchParams[i].split(\"=\");\n options[pair[0]] = decodeURIComponent(pair[1]);\n }\n } else {\n // Else, get the url from the <script> this file was called with.\n var scriptSource = getCurrentScriptSource();\n var scriptSourceURL;\n\n try {\n // The placeholder `baseURL` with `window.location.href`,\n // is to allow parsing of path-relative or protocol-relative URLs,\n // and will have no effect if `scriptSource` is a fully valid URL.\n scriptSourceURL = new URL(scriptSource, self.location.href);\n } catch (error) {// URL parsing failed, do nothing.\n // We will still proceed to see if we can recover using `resourceQuery`\n }\n\n if (scriptSourceURL) {\n options = scriptSourceURL;\n options.fromCurrentScript = true;\n }\n }\n\n return options;\n}\n\nexport default parseURL;"]},"metadata":{},"sourceType":"module"} |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"//\n//\n//\n//\n//\n//\n//\nimport HelloWorld from './components/HelloWorld.vue';\nexport default {\n name: 'App',\n components: {\n HelloWorld: HelloWorld\n }\n};","map":{"version":3,"mappings":";;;;;;;AAQA;AAEA;AACAA,aADA;AAEAC;AACAC;AADA;AAFA","names":["name","components","HelloWorld"],"sourceRoot":"src","sources":["App.vue"],"sourcesContent":["<template>\n <div id=\"app\">\n <img alt=\"Vue logo\" src=\"./assets/logo.png\">\n <HelloWorld msg=\"Welcome to Your Vue.js App\"/>\n </div>\n</template>\n\n<script>\nimport HelloWorld from './components/HelloWorld.vue'\n\nexport default {\n name: 'App',\n components: {\n HelloWorld\n }\n}\n</script>\n\n<style>\n#app {\n font-family: Avenir, Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-align: center;\n color: #2c3e50;\n margin-top: 60px;\n}\n</style>\n"]},"metadata":{},"sourceType":"module"} |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles(parentId, list) {\n var styles = [];\n var newStyles = {};\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = item[0];\n var css = item[1];\n var media = item[2];\n var sourceMap = item[3];\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n };\n\n if (!newStyles[id]) {\n styles.push(newStyles[id] = {\n id: id,\n parts: [part]\n });\n } else {\n newStyles[id].parts.push(part);\n }\n }\n\n return styles;\n}","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/vue-style-loader/lib/listToStyles.js"],"names":["listToStyles","parentId","list","styles","newStyles","i","length","item","id","css","media","sourceMap","part","push","parts"],"mappings":"AAAA;AACA;AACA;AACA;AACA,eAAe,SAASA,YAAT,CAAuBC,QAAvB,EAAiCC,IAAjC,EAAuC;AACpD,MAAIC,MAAM,GAAG,EAAb;AACA,MAAIC,SAAS,GAAG,EAAhB;;AACA,OAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGH,IAAI,CAACI,MAAzB,EAAiCD,CAAC,EAAlC,EAAsC;AACpC,QAAIE,IAAI,GAAGL,IAAI,CAACG,CAAD,CAAf;AACA,QAAIG,EAAE,GAAGD,IAAI,CAAC,CAAD,CAAb;AACA,QAAIE,GAAG,GAAGF,IAAI,CAAC,CAAD,CAAd;AACA,QAAIG,KAAK,GAAGH,IAAI,CAAC,CAAD,CAAhB;AACA,QAAII,SAAS,GAAGJ,IAAI,CAAC,CAAD,CAApB;AACA,QAAIK,IAAI,GAAG;AACTJ,MAAAA,EAAE,EAAEP,QAAQ,GAAG,GAAX,GAAiBI,CADZ;AAETI,MAAAA,GAAG,EAAEA,GAFI;AAGTC,MAAAA,KAAK,EAAEA,KAHE;AAITC,MAAAA,SAAS,EAAEA;AAJF,KAAX;;AAMA,QAAI,CAACP,SAAS,CAACI,EAAD,CAAd,EAAoB;AAClBL,MAAAA,MAAM,CAACU,IAAP,CAAYT,SAAS,CAACI,EAAD,CAAT,GAAgB;AAAEA,QAAAA,EAAE,EAAEA,EAAN;AAAUM,QAAAA,KAAK,EAAE,CAACF,IAAD;AAAjB,OAA5B;AACD,KAFD,MAEO;AACLR,MAAAA,SAAS,CAACI,EAAD,CAAT,CAAcM,KAAd,CAAoBD,IAApB,CAAyBD,IAAzB;AACD;AACF;;AACD,SAAOT,MAAP;AACD","sourcesContent":["/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n"]},"metadata":{},"sourceType":"module"} |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n name: 'HelloWorld',\n props: {\n msg: String\n }\n};","map":{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA;AACAA,oBADA;AAEAC;AACAC;AADA;AAFA","names":["name","props","msg"],"sourceRoot":"src/components","sources":["HelloWorld.vue"],"sourcesContent":["<template>\n <div class=\"hello\">\n <h1>{{ msg }}</h1>\n <p>\n For a guide and recipes on how to configure / customize this project,<br>\n check out the\n <a href=\"https://cli.vuejs.org\" target=\"_blank\" rel=\"noopener\">vue-cli documentation</a>.\n </p>\n <h3>Installed CLI Plugins</h3>\n <ul>\n <li><a href=\"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel\" target=\"_blank\" rel=\"noopener\">babel</a></li>\n <li><a href=\"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint\" target=\"_blank\" rel=\"noopener\">eslint</a></li>\n </ul>\n <h3>Essential Links</h3>\n <ul>\n <li><a href=\"https://vuejs.org\" target=\"_blank\" rel=\"noopener\">Core Docs</a></li>\n <li><a href=\"https://forum.vuejs.org\" target=\"_blank\" rel=\"noopener\">Forum</a></li>\n <li><a href=\"https://chat.vuejs.org\" target=\"_blank\" rel=\"noopener\">Community Chat</a></li>\n <li><a href=\"https://twitter.com/vuejs\" target=\"_blank\" rel=\"noopener\">Twitter</a></li>\n <li><a href=\"https://news.vuejs.org\" target=\"_blank\" rel=\"noopener\">News</a></li>\n </ul>\n <h3>Ecosystem</h3>\n <ul>\n <li><a href=\"https://router.vuejs.org\" target=\"_blank\" rel=\"noopener\">vue-router</a></li>\n <li><a href=\"https://vuex.vuejs.org\" target=\"_blank\" rel=\"noopener\">vuex</a></li>\n <li><a href=\"https://github.com/vuejs/vue-devtools#vue-devtools\" target=\"_blank\" rel=\"noopener\">vue-devtools</a></li>\n <li><a href=\"https://vue-loader.vuejs.org\" target=\"_blank\" rel=\"noopener\">vue-loader</a></li>\n <li><a href=\"https://github.com/vuejs/awesome-vue\" target=\"_blank\" rel=\"noopener\">awesome-vue</a></li>\n </ul>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'HelloWorld',\n props: {\n msg: String\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\nh3 {\n margin: 40px 0 0;\n}\nul {\n list-style-type: none;\n padding: 0;\n}\nli {\n display: inline-block;\n margin: 0 10px;\n}\na {\n color: #42b983;\n}\n</style>\n"]},"metadata":{},"sourceType":"module"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"/* global __resourceQuery WorkerGlobalScope */\n// Send messages to the outside, so plugins can consume it.\n\n/**\n * @param {string} type\n * @param {any} [data]\n */\nfunction sendMsg(type, data) {\n if (typeof self !== \"undefined\" && (typeof WorkerGlobalScope === \"undefined\" || !(self instanceof WorkerGlobalScope))) {\n self.postMessage({\n type: \"webpack\".concat(type),\n data: data\n }, \"*\");\n }\n}\n\nexport default sendMsg;","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/webpack-dev-server/client/utils/sendMessage.js"],"names":["sendMsg","type","data","self","WorkerGlobalScope","postMessage","concat"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAASA,OAAT,CAAiBC,IAAjB,EAAuBC,IAAvB,EAA6B;AAC3B,MAAI,OAAOC,IAAP,KAAgB,WAAhB,KAAgC,OAAOC,iBAAP,KAA6B,WAA7B,IAA4C,EAAED,IAAI,YAAYC,iBAAlB,CAA5E,CAAJ,EAAuH;AACrHD,IAAAA,IAAI,CAACE,WAAL,CAAiB;AACfJ,MAAAA,IAAI,EAAE,UAAUK,MAAV,CAAiBL,IAAjB,CADS;AAEfC,MAAAA,IAAI,EAAEA;AAFS,KAAjB,EAGG,GAHH;AAID;AACF;;AAED,eAAeF,OAAf","sourcesContent":["/* global __resourceQuery WorkerGlobalScope */\n// Send messages to the outside, so plugins can consume it.\n\n/**\n * @param {string} type\n * @param {any} [data]\n */\nfunction sendMsg(type, data) {\n if (typeof self !== \"undefined\" && (typeof WorkerGlobalScope === \"undefined\" || !(self instanceof WorkerGlobalScope))) {\n self.postMessage({\n type: \"webpack\".concat(type),\n data: data\n }, \"*\");\n }\n}\n\nexport default sendMsg;"]},"metadata":{},"sourceType":"module"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import \"core-js/modules/es.symbol.js\";\nimport \"core-js/modules/es.symbol.description.js\";\nimport \"core-js/modules/es.object.to-string.js\";\nimport \"core-js/modules/es.symbol.iterator.js\";\nimport \"core-js/modules/es.string.iterator.js\";\nimport \"core-js/modules/web.dom-collections.iterator.js\";\nexport default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/@babel/runtime/helpers/esm/typeof.js"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype"],"mappings":";;;;;;AAAA,eAAe,SAASA,OAAT,CAAiBC,GAAjB,EAAsB;AACnC;;AAEA,SAAOD,OAAO,GAAG,cAAc,OAAOE,MAArB,IAA+B,YAAY,OAAOA,MAAM,CAACC,QAAzD,GAAoE,UAAUF,GAAV,EAAe;AAClG,WAAO,OAAOA,GAAd;AACD,GAFgB,GAEb,UAAUA,GAAV,EAAe;AACjB,WAAOA,GAAG,IAAI,cAAc,OAAOC,MAA5B,IAAsCD,GAAG,CAACG,WAAJ,KAAoBF,MAA1D,IAAoED,GAAG,KAAKC,MAAM,CAACG,SAAnF,GAA+F,QAA/F,GAA0G,OAAOJ,GAAxH;AACD,GAJM,EAIJD,OAAO,CAACC,GAAD,CAJV;AAKD","sourcesContent":["export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}"]},"metadata":{},"sourceType":"module"} |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import \"core-js/modules/es.symbol.js\";\nimport \"core-js/modules/es.symbol.description.js\";\nimport \"core-js/modules/es.object.to-string.js\";\nimport \"core-js/modules/es.symbol.iterator.js\";\nimport \"core-js/modules/es.string.iterator.js\";\nimport \"core-js/modules/web.dom-collections.iterator.js\";\nexport default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","map":{"version":3,"sources":["/tmp/vue-hello/node_modules/@babel/runtime/helpers/esm/typeof.js"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype"],"mappings":";;;;;;AAAA,eAAe,SAASA,OAAT,CAAiBC,GAAjB,EAAsB;AACnC;;AAEA,SAAOD,OAAO,GAAG,cAAc,OAAOE,MAArB,IAA+B,YAAY,OAAOA,MAAM,CAACC,QAAzD,GAAoE,UAAUF,GAAV,EAAe;AAClG,WAAO,OAAOA,GAAd;AACD,GAFgB,GAEb,UAAUA,GAAV,EAAe;AACjB,WAAOA,GAAG,IAAI,cAAc,OAAOC,MAA5B,IAAsCD,GAAG,CAACG,WAAJ,KAAoBF,MAA1D,IAAoED,GAAG,KAAKC,MAAM,CAACG,SAAnF,GAA+F,QAA/F,GAA0G,OAAOJ,GAAxH;AACD,GAJM,EAIJD,OAAO,CAACC,GAAD,CAJV;AAKD","sourcesContent":["export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}"]},"metadata":{},"sourceType":"module"} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
[{"/tmp/vue-hello/src/main.js":"1","/tmp/vue-hello/src/App.vue":"2","/tmp/vue-hello/src/components/HelloWorld.vue":"3"},{"size":136,"mtime":1646629039817,"results":"4","hashOfConfig":"5"},{"size":509,"mtime":1646629039817,"results":"6","hashOfConfig":"5"},{"size":2025,"mtime":1646629039818,"results":"7","hashOfConfig":"5"},{"filePath":"8","messages":"9","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1sqm59",{"filePath":"10","messages":"11","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"12","messages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/tmp/vue-hello/src/main.js",[],"/tmp/vue-hello/src/App.vue",[],"/tmp/vue-hello/src/components/HelloWorld.vue",[]] |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
[{"/tmp/vue-hello/src/main.js":"1","/tmp/vue-hello/src/App.vue":"2","/tmp/vue-hello/src/components/HelloWorld.vue":"3"},{"size":136,"mtime":1646629039817,"results":"4","hashOfConfig":"5"},{"size":509,"mtime":1646629039817,"results":"6","hashOfConfig":"5"},{"size":2025,"mtime":1646629039818,"results":"7","hashOfConfig":"5"},{"filePath":"8","messages":"9","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1sqm59",{"filePath":"10","messages":"11","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"12","messages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/tmp/vue-hello/src/main.js",[],"/tmp/vue-hello/src/App.vue",[],"/tmp/vue-hello/src/components/HelloWorld.vue",[]] |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,202 @@
@@ -0,0 +1,202 @@
|
||||
|
||||
Apache License |
||||
Version 2.0, January 2004 |
||||
http://www.apache.org/licenses/ |
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
||||
|
||||
1. Definitions. |
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction, |
||||
and distribution as defined by Sections 1 through 9 of this document. |
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by |
||||
the copyright owner that is granting the License. |
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all |
||||
other entities that control, are controlled by, or are under common |
||||
control with that entity. For the purposes of this definition, |
||||
"control" means (i) the power, direct or indirect, to cause the |
||||
direction or management of such entity, whether by contract or |
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the |
||||
outstanding shares, or (iii) beneficial ownership of such entity. |
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity |
||||
exercising permissions granted by this License. |
||||
|
||||
"Source" form shall mean the preferred form for making modifications, |
||||
including but not limited to software source code, documentation |
||||
source, and configuration files. |
||||
|
||||
"Object" form shall mean any form resulting from mechanical |
||||
transformation or translation of a Source form, including but |
||||
not limited to compiled object code, generated documentation, |
||||
and conversions to other media types. |
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or |
||||
Object form, made available under the License, as indicated by a |
||||
copyright notice that is included in or attached to the work |
||||
(an example is provided in the Appendix below). |
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object |
||||
form, that is based on (or derived from) the Work and for which the |
||||
editorial revisions, annotations, elaborations, or other modifications |
||||
represent, as a whole, an original work of authorship. For the purposes |
||||
of this License, Derivative Works shall not include works that remain |
||||
separable from, or merely link (or bind by name) to the interfaces of, |
||||
the Work and Derivative Works thereof. |
||||
|
||||
"Contribution" shall mean any work of authorship, including |
||||
the original version of the Work and any modifications or additions |
||||
to that Work or Derivative Works thereof, that is intentionally |
||||
submitted to Licensor for inclusion in the Work by the copyright owner |
||||
or by an individual or Legal Entity authorized to submit on behalf of |
||||
the copyright owner. For the purposes of this definition, "submitted" |
||||
means any form of electronic, verbal, or written communication sent |
||||
to the Licensor or its representatives, including but not limited to |
||||
communication on electronic mailing lists, source code control systems, |
||||
and issue tracking systems that are managed by, or on behalf of, the |
||||
Licensor for the purpose of discussing and improving the Work, but |
||||
excluding communication that is conspicuously marked or otherwise |
||||
designated in writing by the copyright owner as "Not a Contribution." |
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity |
||||
on behalf of whom a Contribution has been received by Licensor and |
||||
subsequently incorporated within the Work. |
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of |
||||
this License, each Contributor hereby grants to You a perpetual, |
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
||||
copyright license to reproduce, prepare Derivative Works of, |
||||
publicly display, publicly perform, sublicense, and distribute the |
||||
Work and such Derivative Works in Source or Object form. |
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of |
||||
this License, each Contributor hereby grants to You a perpetual, |
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
||||
(except as stated in this section) patent license to make, have made, |
||||
use, offer to sell, sell, import, and otherwise transfer the Work, |
||||
where such license applies only to those patent claims licensable |
||||
by such Contributor that are necessarily infringed by their |
||||
Contribution(s) alone or by combination of their Contribution(s) |
||||
with the Work to which such Contribution(s) was submitted. If You |
||||
institute patent litigation against any entity (including a |
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work |
||||
or a Contribution incorporated within the Work constitutes direct |
||||
or contributory patent infringement, then any patent licenses |
||||
granted to You under this License for that Work shall terminate |
||||
as of the date such litigation is filed. |
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the |
||||
Work or Derivative Works thereof in any medium, with or without |
||||
modifications, and in Source or Object form, provided that You |
||||
meet the following conditions: |
||||
|
||||
(a) You must give any other recipients of the Work or |
||||
Derivative Works a copy of this License; and |
||||
|
||||
(b) You must cause any modified files to carry prominent notices |
||||
stating that You changed the files; and |
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works |
||||
that You distribute, all copyright, patent, trademark, and |
||||
attribution notices from the Source form of the Work, |
||||
excluding those notices that do not pertain to any part of |
||||
the Derivative Works; and |
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its |
||||
distribution, then any Derivative Works that You distribute must |
||||
include a readable copy of the attribution notices contained |
||||
within such NOTICE file, excluding those notices that do not |
||||
pertain to any part of the Derivative Works, in at least one |
||||
of the following places: within a NOTICE text file distributed |
||||
as part of the Derivative Works; within the Source form or |
||||
documentation, if provided along with the Derivative Works; or, |
||||
within a display generated by the Derivative Works, if and |
||||
wherever such third-party notices normally appear. The contents |
||||
of the NOTICE file are for informational purposes only and |
||||
do not modify the License. You may add Your own attribution |
||||
notices within Derivative Works that You distribute, alongside |
||||
or as an addendum to the NOTICE text from the Work, provided |
||||
that such additional attribution notices cannot be construed |
||||
as modifying the License. |
||||
|
||||
You may add Your own copyright statement to Your modifications and |
||||
may provide additional or different license terms and conditions |
||||
for use, reproduction, or distribution of Your modifications, or |
||||
for any such Derivative Works as a whole, provided Your use, |
||||
reproduction, and distribution of the Work otherwise complies with |
||||
the conditions stated in this License. |
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise, |
||||
any Contribution intentionally submitted for inclusion in the Work |
||||
by You to the Licensor shall be under the terms and conditions of |
||||
this License, without any additional terms or conditions. |
||||
Notwithstanding the above, nothing herein shall supersede or modify |
||||
the terms of any separate license agreement you may have executed |
||||
with Licensor regarding such Contributions. |
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade |
||||
names, trademarks, service marks, or product names of the Licensor, |
||||
except as required for reasonable and customary use in describing the |
||||
origin of the Work and reproducing the content of the NOTICE file. |
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or |
||||
agreed to in writing, Licensor provides the Work (and each |
||||
Contributor provides its Contributions) on an "AS IS" BASIS, |
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
||||
implied, including, without limitation, any warranties or conditions |
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A |
||||
PARTICULAR PURPOSE. You are solely responsible for determining the |
||||
appropriateness of using or redistributing the Work and assume any |
||||
risks associated with Your exercise of permissions under this License. |
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory, |
||||
whether in tort (including negligence), contract, or otherwise, |
||||
unless required by applicable law (such as deliberate and grossly |
||||
negligent acts) or agreed to in writing, shall any Contributor be |
||||
liable to You for damages, including any direct, indirect, special, |
||||
incidental, or consequential damages of any character arising as a |
||||
result of this License or out of the use or inability to use the |
||||
Work (including but not limited to damages for loss of goodwill, |
||||
work stoppage, computer failure or malfunction, or any and all |
||||
other commercial damages or losses), even if such Contributor |
||||
has been advised of the possibility of such damages. |
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing |
||||
the Work or Derivative Works thereof, You may choose to offer, |
||||
and charge a fee for, acceptance of support, warranty, indemnity, |
||||
or other liability obligations and/or rights consistent with this |
||||
License. However, in accepting such obligations, You may act only |
||||
on Your own behalf and on Your sole responsibility, not on behalf |
||||
of any other Contributor, and only if You agree to indemnify, |
||||
defend, and hold each Contributor harmless for any liability |
||||
incurred by, or claims asserted against, such Contributor by reason |
||||
of your accepting any such warranty or additional liability. |
||||
|
||||
END OF TERMS AND CONDITIONS |
||||
|
||||
APPENDIX: How to apply the Apache License to your work. |
||||
|
||||
To apply the Apache License to your work, attach the following |
||||
boilerplate notice, with the fields enclosed by brackets "[]" |
||||
replaced with your own identifying information. (Don't include |
||||
the brackets!) The text should be enclosed in the appropriate |
||||
comment syntax for the file format. We also recommend that a |
||||
file or class name and description of purpose be included on the |
||||
same "printed page" as the copyright notice for easier |
||||
identification within third-party archives. |
||||
|
||||
Copyright 2019 Google LLC |
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); |
||||
you may not use this file except in compliance with the License. |
||||
You may obtain a copy of the License at |
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0 |
||||
|
||||
Unless required by applicable law or agreed to in writing, software |
||||
distributed under the License is distributed on an "AS IS" BASIS, |
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
See the License for the specific language governing permissions and |
||||
limitations under the License. |
@ -0,0 +1,218 @@
@@ -0,0 +1,218 @@
|
||||
# @ampproject/remapping |
||||
|
||||
> Remap sequential sourcemaps through transformations to point at the original source code |
||||
|
||||
Remapping allows you to take the sourcemaps generated through transforming your code and "remap" |
||||
them to the original source locations. Think "my minified code, transformed with babel and bundled |
||||
with webpack", all pointing to the correct location in your original source code. |
||||
|
||||
With remapping, none of your source code transformations need to be aware of the input's sourcemap, |
||||
they only need to generate an output sourcemap. This greatly simplifies building custom |
||||
transformations (think a find-and-replace). |
||||
|
||||
## Installation |
||||
|
||||
```sh |
||||
npm install @ampproject/remapping |
||||
``` |
||||
|
||||
## Usage |
||||
|
||||
```typescript |
||||
function remapping( |
||||
map: SourceMap | SourceMap[], |
||||
loader: (file: string, ctx: LoaderContext) => (SourceMap | null | undefined), |
||||
options?: { excludeContent: boolean, decodedMappings: boolean } |
||||
): SourceMap; |
||||
|
||||
// LoaderContext gives the loader the importing sourcemap, tree depth, the ability to override the |
||||
// "source" location (where child sources are resolved relative to, or the location of original |
||||
// source), and the ability to override the "content" of an original source for inclusion in the |
||||
// output sourcemap. |
||||
type LoaderContext = { |
||||
readonly importer: string; |
||||
readonly depth: number; |
||||
source: string; |
||||
content: string | null | undefined; |
||||
} |
||||
``` |
||||
|
||||
`remapping` takes the final output sourcemap, and a `loader` function. For every source file pointer |
||||
in the sourcemap, the `loader` will be called with the resolved path. If the path itself represents |
||||
a transformed file (it has a sourcmap associated with it), then the `loader` should return that |
||||
sourcemap. If not, the path will be treated as an original, untransformed source code. |
||||
|
||||
```js |
||||
// Babel transformed "helloworld.js" into "transformed.js" |
||||
const transformedMap = JSON.stringify({ |
||||
file: 'transformed.js', |
||||
// 1st column of 2nd line of output file translates into the 1st source |
||||
// file, line 3, column 2 |
||||
mappings: ';CAEE', |
||||
sources: ['helloworld.js'], |
||||
version: 3, |
||||
}); |
||||
|
||||
// Uglify minified "transformed.js" into "transformed.min.js" |
||||
const minifiedTransformedMap = JSON.stringify({ |
||||
file: 'transformed.min.js', |
||||
// 0th column of 1st line of output file translates into the 1st source |
||||
// file, line 2, column 1. |
||||
mappings: 'AACC', |
||||
names: [], |
||||
sources: ['transformed.js'], |
||||
version: 3, |
||||
}); |
||||
|
||||
const remapped = remapping( |
||||
minifiedTransformedMap, |
||||
(file, ctx) => { |
||||
|
||||
// The "transformed.js" file is an transformed file. |
||||
if (file === 'transformed.js') { |
||||
// The root importer is empty. |
||||
console.assert(ctx.importer === ''); |
||||
// The depth in the sourcemap tree we're currently loading. |
||||
// The root `minifiedTransformedMap` is depth 0, and its source children are depth 1, etc. |
||||
console.assert(ctx.depth === 1); |
||||
|
||||
return transformedMap; |
||||
} |
||||
|
||||
// Loader will be called to load transformedMap's source file pointers as well. |
||||
console.assert(file === 'helloworld.js'); |
||||
// `transformed.js`'s sourcemap points into `helloworld.js`. |
||||
console.assert(ctx.importer === 'transformed.js'); |
||||
// This is a source child of `transformed`, which is a source child of `minifiedTransformedMap`. |
||||
console.assert(ctx.depth === 2); |
||||
return null; |
||||
} |
||||
); |
||||
|
||||
console.log(remapped); |
||||
// { |
||||
// file: 'transpiled.min.js', |
||||
// mappings: 'AAEE', |
||||
// sources: ['helloworld.js'], |
||||
// version: 3, |
||||
// }; |
||||
``` |
||||
|
||||
In this example, `loader` will be called twice: |
||||
|
||||
1. `"transformed.js"`, the first source file pointer in the `minifiedTransformedMap`. We return the |
||||
associated sourcemap for it (its a transformed file, after all) so that sourcemap locations can |
||||
be traced through it into the source files it represents. |
||||
2. `"helloworld.js"`, our original, unmodified source code. This file does not have a sourcemap, so |
||||
we return `null`. |
||||
|
||||
The `remapped` sourcemap now points from `transformed.min.js` into locations in `helloworld.js`. If |
||||
you were to read the `mappings`, it says "0th column of the first line output line points to the 1st |
||||
column of the 2nd line of the file `helloworld.js`". |
||||
|
||||
### Multiple transformations of a file |
||||
|
||||
As a convenience, if you have multiple single-source transformations of a file, you may pass an |
||||
array of sourcemap files in the order of most-recent transformation sourcemap first. Note that this |
||||
changes the `importer` and `depth` of each call to our loader. So our above example could have been |
||||
written as: |
||||
|
||||
```js |
||||
const remapped = remapping( |
||||
[minifiedTransformedMap, transformedMap], |
||||
() => null |
||||
); |
||||
|
||||
console.log(remapped); |
||||
// { |
||||
// file: 'transpiled.min.js', |
||||
// mappings: 'AAEE', |
||||
// sources: ['helloworld.js'], |
||||
// version: 3, |
||||
// }; |
||||
``` |
||||
|
||||
### Advanced control of the loading graph |
||||
|
||||
#### `source` |
||||
|
||||
The `source` property can overridden to any value to change the location of the current load. Eg, |
||||
for an original source file, it allows us to change the location to the original source regardless |
||||
of what the sourcemap source entry says. And for transformed files, it allows us to change the |
||||
relative resolving location for child sources of the loaded sourcemap. |
||||
|
||||
```js |
||||
const remapped = remapping( |
||||
minifiedTransformedMap, |
||||
(file, ctx) => { |
||||
|
||||
if (file === 'transformed.js') { |
||||
// We pretend the transformed.js file actually exists in the 'src/' directory. When the nested |
||||
// source files are loaded, they will now be relative to `src/`. |
||||
ctx.source = 'src/transformed.js'; |
||||
return transformedMap; |
||||
} |
||||
|
||||
console.assert(file === 'src/helloworld.js'); |
||||
// We could futher change the source of this original file, eg, to be inside a nested directory |
||||
// itself. This will be reflected in the remapped sourcemap. |
||||
ctx.source = 'src/nested/transformed.js'; |
||||
return null; |
||||
} |
||||
); |
||||
|
||||
console.log(remapped); |
||||
// { |
||||
// …, |
||||
// sources: ['src/nested/helloworld.js'], |
||||
// }; |
||||
``` |
||||
|
||||
|
||||
#### `content` |
||||
|
||||
The `content` property can be overridden when we encounter an original source file. Eg, this allows |
||||
you to manually provide the source content of the original file regardless of whether the |
||||
`sourcesContent` field is present in the parent sourcemap. It can also be set to `null` to remove |
||||
the source content. |
||||
|
||||
```js |
||||
const remapped = remapping( |
||||
minifiedTransformedMap, |
||||
(file, ctx) => { |
||||
|
||||
if (file === 'transformed.js') { |
||||
// transformedMap does not include a `sourcesContent` field, so usually the remapped sourcemap |
||||
// would not include any `sourcesContent` values. |
||||
return transformedMap; |
||||
} |
||||
|
||||
console.assert(file === 'helloworld.js'); |
||||
// We can read the file to provide the source content. |
||||
ctx.content = fs.readFileSync(file, 'utf8'); |
||||
return null; |
||||
} |
||||
); |
||||
|
||||
console.log(remapped); |
||||
// { |
||||
// …, |
||||
// sourcesContent: [ |
||||
// 'console.log("Hello world!")', |
||||
// ], |
||||
// }; |
||||
``` |
||||
|
||||
### Options |
||||
|
||||
#### excludeContent |
||||
|
||||
By default, `excludeContent` is `false`. Passing `{ excludeContent: true }` will exclude the |
||||
`sourcesContent` field from the returned sourcemap. This is mainly useful when you want to reduce |
||||
the size out the sourcemap. |
||||
|
||||
#### decodedMappings |
||||
|
||||
By default, `decodedMappings` is `false`. Passing `{ decodedMappings: true }` will leave the |
||||
`mappings` field in a [decoded state](https://github.com/rich-harris/sourcemap-codec) instead of |
||||
encoding into a VLQ string. |
@ -0,0 +1,276 @@
@@ -0,0 +1,276 @@
|
||||
import { traceSegment, decodedMappings, presortedDecodedMap, TraceMap, encodedMappings } from '@jridgewell/trace-mapping'; |
||||
|
||||
/** |
||||
* A "leaf" node in the sourcemap tree, representing an original, unmodified |
||||
* source file. Recursive segment tracing ends at the `OriginalSource`. |
||||
*/ |
||||
class OriginalSource { |
||||
constructor(source, content) { |
||||
this.source = source; |
||||
this.content = content; |
||||
} |
||||
/** |
||||
* Tracing a `SourceMapSegment` ends when we get to an `OriginalSource`, |
||||
* meaning this line/column location originated from this source file. |
||||
*/ |
||||
originalPositionFor(line, column, name) { |
||||
return { column, line, name, source: this.source, content: this.content }; |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Puts `key` into the backing array, if it is not already present. Returns |
||||
* the index of the `key` in the backing array. |
||||
*/ |
||||
let put; |
||||
/** |
||||
* FastStringArray acts like a `Set` (allowing only one occurrence of a string |
||||
* `key`), but provides the index of the `key` in the backing array. |
||||
* |
||||
* This is designed to allow synchronizing a second array with the contents of |
||||
* the backing array, like how `sourcesContent[i]` is the source content |
||||
* associated with `source[i]`, and there are never duplicates. |
||||
*/ |
||||
class FastStringArray { |
||||
constructor() { |
||||
this.indexes = Object.create(null); |
||||
this.array = []; |
||||
} |
||||
} |
||||
(() => { |
||||
put = (strarr, key) => { |
||||
const { array, indexes } = strarr; |
||||
// The key may or may not be present. If it is present, it's a number.
|
||||
let index = indexes[key]; |
||||
// If it's not yet present, we need to insert it and track the index in the
|
||||
// indexes.
|
||||
if (index === undefined) { |
||||
index = indexes[key] = array.length; |
||||
array.push(key); |
||||
} |
||||
return index; |
||||
}; |
||||
})(); |
||||
|
||||
const INVALID_MAPPING = undefined; |
||||
const SOURCELESS_MAPPING = null; |
||||
/** |
||||
* traceMappings is only called on the root level SourceMapTree, and begins the process of |
||||
* resolving each mapping in terms of the original source files. |
||||
*/ |
||||
let traceMappings; |
||||
/** |
||||
* SourceMapTree represents a single sourcemap, with the ability to trace |
||||
* mappings into its child nodes (which may themselves be SourceMapTrees). |
||||
*/ |
||||
class SourceMapTree { |
||||
constructor(map, sources) { |
||||
this.map = map; |
||||
this.sources = sources; |
||||
} |
||||
/** |
||||
* originalPositionFor is only called on children SourceMapTrees. It recurses down |
||||
* into its own child SourceMapTrees, until we find the original source map. |
||||
*/ |
||||
originalPositionFor(line, column, name) { |
||||
const segment = traceSegment(this.map, line, column); |
||||
// If we couldn't find a segment, then this doesn't exist in the sourcemap.
|
||||
if (segment == null) |
||||
return INVALID_MAPPING; |
||||
// 1-length segments only move the current generated column, there's no source information
|
||||
// to gather from it.
|
||||
if (segment.length === 1) |
||||
return SOURCELESS_MAPPING; |
||||
const source = this.sources[segment[1]]; |
||||
return source.originalPositionFor(segment[2], segment[3], segment.length === 5 ? this.map.names[segment[4]] : name); |
||||
} |
||||
} |
||||
(() => { |
||||
traceMappings = (tree) => { |
||||
const mappings = []; |
||||
const names = new FastStringArray(); |
||||
const sources = new FastStringArray(); |
||||
const sourcesContent = []; |
||||
const { sources: rootSources, map } = tree; |
||||
const rootNames = map.names; |
||||
const rootMappings = decodedMappings(map); |
||||
let lastLineWithSegment = -1; |
||||
for (let i = 0; i < rootMappings.length; i++) { |
||||
const segments = rootMappings[i]; |
||||
const tracedSegments = []; |
||||
let lastSourcesIndex = -1; |
||||
let lastSourceLine = -1; |
||||
let lastSourceColumn = -1; |
||||
for (let j = 0; j < segments.length; j++) { |
||||
const segment = segments[j]; |
||||
let traced = SOURCELESS_MAPPING; |
||||
// 1-length segments only move the current generated column, there's no source information
|
||||
// to gather from it.
|
||||
if (segment.length !== 1) { |
||||
const source = rootSources[segment[1]]; |
||||
traced = source.originalPositionFor(segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : ''); |
||||
// If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a
|
||||
// respective segment into an original source.
|
||||
if (traced === INVALID_MAPPING) |
||||
continue; |
||||
} |
||||
const genCol = segment[0]; |
||||
if (traced === SOURCELESS_MAPPING) { |
||||
if (lastSourcesIndex === -1) { |
||||
// This is a consecutive source-less segment, which doesn't carry any new information.
|
||||
continue; |
||||
} |
||||
lastSourcesIndex = lastSourceLine = lastSourceColumn = -1; |
||||
tracedSegments.push([genCol]); |
||||
continue; |
||||
} |
||||
// So we traced a segment down into its original source file. Now push a
|
||||
// new segment pointing to this location.
|
||||
const { column, line, name, content, source } = traced; |
||||
// Store the source location, and ensure we keep sourcesContent up to
|
||||
// date with the sources array.
|
||||
const sourcesIndex = put(sources, source); |
||||
sourcesContent[sourcesIndex] = content; |
||||
if (lastSourcesIndex === sourcesIndex && |
||||
lastSourceLine === line && |
||||
lastSourceColumn === column) { |
||||
// This is a duplicate mapping pointing at the exact same starting point in the source
|
||||
// file. It doesn't carry any new information, and only bloats the sourcemap.
|
||||
continue; |
||||
} |
||||
lastLineWithSegment = i; |
||||
lastSourcesIndex = sourcesIndex; |
||||
lastSourceLine = line; |
||||
lastSourceColumn = column; |
||||
// This looks like unnecessary duplication, but it noticeably increases performance. If we
|
||||
// were to push the nameIndex onto length-4 array, v8 would internally allocate 22 slots!
|
||||
// That's 68 wasted bytes! Array literals have the same capacity as their length, saving
|
||||
// memory.
|
||||
tracedSegments.push(name |
||||
? [genCol, sourcesIndex, line, column, put(names, name)] |
||||
: [genCol, sourcesIndex, line, column]); |
||||
} |
||||
mappings.push(tracedSegments); |
||||
} |
||||
if (mappings.length > lastLineWithSegment + 1) { |
||||
mappings.length = lastLineWithSegment + 1; |
||||
} |
||||
return presortedDecodedMap(Object.assign({}, tree.map, { |
||||
mappings, |
||||
// TODO: Make all sources relative to the sourceRoot.
|
||||
sourceRoot: undefined, |
||||
names: names.array, |
||||
sources: sources.array, |
||||
sourcesContent, |
||||
})); |
||||
}; |
||||
})(); |
||||
|
||||
function asArray(value) { |
||||
if (Array.isArray(value)) |
||||
return value; |
||||
return [value]; |
||||
} |
||||
/** |
||||
* Recursively builds a tree structure out of sourcemap files, with each node |
||||
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of |
||||
* `OriginalSource`s and `SourceMapTree`s. |
||||
* |
||||
* Every sourcemap is composed of a collection of source files and mappings |
||||
* into locations of those source files. When we generate a `SourceMapTree` for |
||||
* the sourcemap, we attempt to load each source file's own sourcemap. If it |
||||
* does not have an associated sourcemap, it is considered an original, |
||||
* unmodified source file. |
||||
*/ |
||||
function buildSourceMapTree(input, loader) { |
||||
const maps = asArray(input).map((m) => new TraceMap(m, '')); |
||||
const map = maps.pop(); |
||||
for (let i = 0; i < maps.length; i++) { |
||||
if (maps[i].sources.length > 1) { |
||||
throw new Error(`Transformation map ${i} must have exactly one source file.\n` + |
||||
'Did you specify these with the most recent transformation maps first?'); |
||||
} |
||||
} |
||||
let tree = build(map, loader, '', 0); |
||||
for (let i = maps.length - 1; i >= 0; i--) { |
||||
tree = new SourceMapTree(maps[i], [tree]); |
||||
} |
||||
return tree; |
||||
} |
||||
function build(map, loader, importer, importerDepth) { |
||||
const { resolvedSources, sourcesContent } = map; |
||||
const depth = importerDepth + 1; |
||||
const children = resolvedSources.map((sourceFile, i) => { |
||||
// The loading context gives the loader more information about why this file is being loaded
|
||||
// (eg, from which importer). It also allows the loader to override the location of the loaded
|
||||
// sourcemap/original source, or to override the content in the sourcesContent field if it's
|
||||
// an unmodified source file.
|
||||
const ctx = { |
||||
importer, |
||||
depth, |
||||
source: sourceFile || '', |
||||
content: undefined, |
||||
}; |
||||
// Use the provided loader callback to retrieve the file's sourcemap.
|
||||
// TODO: We should eventually support async loading of sourcemap files.
|
||||
const sourceMap = loader(ctx.source, ctx); |
||||
const { source, content } = ctx; |
||||
// If there is no sourcemap, then it is an unmodified source file.
|
||||
if (!sourceMap) { |
||||
// The contents of this unmodified source file can be overridden via the loader context,
|
||||
// allowing it to be explicitly null or a string. If it remains undefined, we fall back to
|
||||
// the importing sourcemap's `sourcesContent` field.
|
||||
const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null; |
||||
return new OriginalSource(source, sourceContent); |
||||
} |
||||
// Else, it's a real sourcemap, and we need to recurse into it to load its
|
||||
// source files.
|
||||
return build(new TraceMap(sourceMap, source), loader, source, depth); |
||||
}); |
||||
return new SourceMapTree(map, children); |
||||
} |
||||
|
||||
/** |
||||
* A SourceMap v3 compatible sourcemap, which only includes fields that were |
||||
* provided to it. |
||||
*/ |
||||
class SourceMap { |
||||
constructor(map, options) { |
||||
this.version = 3; // SourceMap spec says this should be first.
|
||||
this.file = map.file; |
||||
this.mappings = options.decodedMappings ? decodedMappings(map) : encodedMappings(map); |
||||
this.names = map.names; |
||||
this.sourceRoot = map.sourceRoot; |
||||
this.sources = map.sources; |
||||
if (!options.excludeContent && 'sourcesContent' in map) { |
||||
this.sourcesContent = map.sourcesContent; |
||||
} |
||||
} |
||||
toString() { |
||||
return JSON.stringify(this); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Traces through all the mappings in the root sourcemap, through the sources |
||||
* (and their sourcemaps), all the way back to the original source location. |
||||
* |
||||
* `loader` will be called every time we encounter a source file. If it returns |
||||
* a sourcemap, we will recurse into that sourcemap to continue the trace. If |
||||
* it returns a falsey value, that source file is treated as an original, |
||||
* unmodified source file. |
||||
* |
||||
* Pass `excludeContent` to exclude any self-containing source file content |
||||
* from the output sourcemap. |
||||
* |
||||
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of |
||||
* VLQ encoded) mappings. |
||||
*/ |
||||
function remapping(input, loader, options) { |
||||
const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false }; |
||||
const tree = buildSourceMapTree(input, loader); |
||||
return new SourceMap(traceMappings(tree), opts); |
||||
} |
||||
|
||||
export { remapping as default }; |
||||
//# sourceMappingURL=remapping.mjs.map
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,282 @@
@@ -0,0 +1,282 @@
|
||||
(function (global, factory) { |
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@jridgewell/trace-mapping')) : |
||||
typeof define === 'function' && define.amd ? define(['@jridgewell/trace-mapping'], factory) : |
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.remapping = factory(global.traceMapping)); |
||||
})(this, (function (traceMapping) { 'use strict'; |
||||
|
||||
/** |
||||
* A "leaf" node in the sourcemap tree, representing an original, unmodified |
||||
* source file. Recursive segment tracing ends at the `OriginalSource`. |
||||
*/ |
||||
class OriginalSource { |
||||
constructor(source, content) { |
||||
this.source = source; |
||||
this.content = content; |
||||
} |
||||
/** |
||||
* Tracing a `SourceMapSegment` ends when we get to an `OriginalSource`, |
||||
* meaning this line/column location originated from this source file. |
||||
*/ |
||||
originalPositionFor(line, column, name) { |
||||
return { column, line, name, source: this.source, content: this.content }; |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Puts `key` into the backing array, if it is not already present. Returns |
||||
* the index of the `key` in the backing array. |
||||
*/ |
||||
let put; |
||||
/** |
||||
* FastStringArray acts like a `Set` (allowing only one occurrence of a string |
||||
* `key`), but provides the index of the `key` in the backing array. |
||||
* |
||||
* This is designed to allow synchronizing a second array with the contents of |
||||
* the backing array, like how `sourcesContent[i]` is the source content |
||||
* associated with `source[i]`, and there are never duplicates. |
||||
*/ |
||||
class FastStringArray { |
||||
constructor() { |
||||
this.indexes = Object.create(null); |
||||
this.array = []; |
||||
} |
||||
} |
||||
(() => { |
||||
put = (strarr, key) => { |
||||
const { array, indexes } = strarr; |
||||
// The key may or may not be present. If it is present, it's a number.
|
||||
let index = indexes[key]; |
||||
// If it's not yet present, we need to insert it and track the index in the
|
||||
// indexes.
|
||||
if (index === undefined) { |
||||
index = indexes[key] = array.length; |
||||
array.push(key); |
||||
} |
||||
return index; |
||||
}; |
||||
})(); |
||||
|
||||
const INVALID_MAPPING = undefined; |
||||
const SOURCELESS_MAPPING = null; |
||||
/** |
||||
* traceMappings is only called on the root level SourceMapTree, and begins the process of |
||||
* resolving each mapping in terms of the original source files. |
||||
*/ |
||||
let traceMappings; |
||||
/** |
||||
* SourceMapTree represents a single sourcemap, with the ability to trace |
||||
* mappings into its child nodes (which may themselves be SourceMapTrees). |
||||
*/ |
||||
class SourceMapTree { |
||||
constructor(map, sources) { |
||||
this.map = map; |
||||
this.sources = sources; |
||||
} |
||||
/** |
||||
* originalPositionFor is only called on children SourceMapTrees. It recurses down |
||||
* into its own child SourceMapTrees, until we find the original source map. |
||||
*/ |
||||
originalPositionFor(line, column, name) { |
||||
const segment = traceMapping.traceSegment(this.map, line, column); |
||||
// If we couldn't find a segment, then this doesn't exist in the sourcemap.
|
||||
if (segment == null) |
||||
return INVALID_MAPPING; |
||||
// 1-length segments only move the current generated column, there's no source information
|
||||
// to gather from it.
|
||||
if (segment.length === 1) |
||||
return SOURCELESS_MAPPING; |
||||
const source = this.sources[segment[1]]; |
||||
return source.originalPositionFor(segment[2], segment[3], segment.length === 5 ? this.map.names[segment[4]] : name); |
||||
} |
||||
} |
||||
(() => { |
||||
traceMappings = (tree) => { |
||||
const mappings = []; |
||||
const names = new FastStringArray(); |
||||
const sources = new FastStringArray(); |
||||
const sourcesContent = []; |
||||
const { sources: rootSources, map } = tree; |
||||
const rootNames = map.names; |
||||
const rootMappings = traceMapping.decodedMappings(map); |
||||
let lastLineWithSegment = -1; |
||||
for (let i = 0; i < rootMappings.length; i++) { |
||||
const segments = rootMappings[i]; |
||||
const tracedSegments = []; |
||||
let lastSourcesIndex = -1; |
||||
let lastSourceLine = -1; |
||||
let lastSourceColumn = -1; |
||||
for (let j = 0; j < segments.length; j++) { |
||||
const segment = segments[j]; |
||||
let traced = SOURCELESS_MAPPING; |
||||
// 1-length segments only move the current generated column, there's no source information
|
||||
// to gather from it.
|
||||
if (segment.length !== 1) { |
||||
const source = rootSources[segment[1]]; |
||||
traced = source.originalPositionFor(segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : ''); |
||||
// If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a
|
||||
// respective segment into an original source.
|
||||
if (traced === INVALID_MAPPING) |
||||
continue; |
||||
} |
||||
const genCol = segment[0]; |
||||
if (traced === SOURCELESS_MAPPING) { |
||||
if (lastSourcesIndex === -1) { |
||||
// This is a consecutive source-less segment, which doesn't carry any new information.
|
||||
continue; |
||||
} |
||||
lastSourcesIndex = lastSourceLine = lastSourceColumn = -1; |
||||
tracedSegments.push([genCol]); |
||||
continue; |
||||
} |
||||
// So we traced a segment down into its original source file. Now push a
|
||||
// new segment pointing to this location.
|
||||
const { column, line, name, content, source } = traced; |
||||
// Store the source location, and ensure we keep sourcesContent up to
|
||||
// date with the sources array.
|
||||
const sourcesIndex = put(sources, source); |
||||
sourcesContent[sourcesIndex] = content; |
||||
if (lastSourcesIndex === sourcesIndex && |
||||
lastSourceLine === line && |
||||
lastSourceColumn === column) { |
||||
// This is a duplicate mapping pointing at the exact same starting point in the source
|
||||
// file. It doesn't carry any new information, and only bloats the sourcemap.
|
||||
continue; |
||||
} |
||||
lastLineWithSegment = i; |
||||
lastSourcesIndex = sourcesIndex; |
||||
lastSourceLine = line; |
||||
lastSourceColumn = column; |
||||
// This looks like unnecessary duplication, but it noticeably increases performance. If we
|
||||
// were to push the nameIndex onto length-4 array, v8 would internally allocate 22 slots!
|
||||
// That's 68 wasted bytes! Array literals have the same capacity as their length, saving
|
||||
// memory.
|
||||
tracedSegments.push(name |
||||
? [genCol, sourcesIndex, line, column, put(names, name)] |
||||
: [genCol, sourcesIndex, line, column]); |
||||
} |
||||
mappings.push(tracedSegments); |
||||
} |
||||
if (mappings.length > lastLineWithSegment + 1) { |
||||
mappings.length = lastLineWithSegment + 1; |
||||
} |
||||
return traceMapping.presortedDecodedMap(Object.assign({}, tree.map, { |
||||
mappings, |
||||
// TODO: Make all sources relative to the sourceRoot.
|
||||
sourceRoot: undefined, |
||||
names: names.array, |
||||
sources: sources.array, |
||||
sourcesContent, |
||||
})); |
||||
}; |
||||
})(); |
||||
|
||||
function asArray(value) { |
||||
if (Array.isArray(value)) |
||||
return value; |
||||
return [value]; |
||||
} |
||||
/** |
||||
* Recursively builds a tree structure out of sourcemap files, with each node |
||||
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of |
||||
* `OriginalSource`s and `SourceMapTree`s. |
||||
* |
||||
* Every sourcemap is composed of a collection of source files and mappings |
||||
* into locations of those source files. When we generate a `SourceMapTree` for |
||||
* the sourcemap, we attempt to load each source file's own sourcemap. If it |
||||
* does not have an associated sourcemap, it is considered an original, |
||||
* unmodified source file. |
||||
*/ |
||||
function buildSourceMapTree(input, loader) { |
||||
const maps = asArray(input).map((m) => new traceMapping.TraceMap(m, '')); |
||||
const map = maps.pop(); |
||||
for (let i = 0; i < maps.length; i++) { |
||||
if (maps[i].sources.length > 1) { |
||||
throw new Error(`Transformation map ${i} must have exactly one source file.\n` + |
||||
'Did you specify these with the most recent transformation maps first?'); |
||||
} |
||||
} |
||||
let tree = build(map, loader, '', 0); |
||||
for (let i = maps.length - 1; i >= 0; i--) { |
||||
tree = new SourceMapTree(maps[i], [tree]); |
||||
} |
||||
return tree; |
||||
} |
||||
function build(map, loader, importer, importerDepth) { |
||||
const { resolvedSources, sourcesContent } = map; |
||||
const depth = importerDepth + 1; |
||||
const children = resolvedSources.map((sourceFile, i) => { |
||||
// The loading context gives the loader more information about why this file is being loaded
|
||||
// (eg, from which importer). It also allows the loader to override the location of the loaded
|
||||
// sourcemap/original source, or to override the content in the sourcesContent field if it's
|
||||
// an unmodified source file.
|
||||
const ctx = { |
||||
importer, |
||||
depth, |
||||
source: sourceFile || '', |
||||
content: undefined, |
||||
}; |
||||
// Use the provided loader callback to retrieve the file's sourcemap.
|
||||
// TODO: We should eventually support async loading of sourcemap files.
|
||||
const sourceMap = loader(ctx.source, ctx); |
||||
const { source, content } = ctx; |
||||
// If there is no sourcemap, then it is an unmodified source file.
|
||||
if (!sourceMap) { |
||||
// The contents of this unmodified source file can be overridden via the loader context,
|
||||
// allowing it to be explicitly null or a string. If it remains undefined, we fall back to
|
||||
// the importing sourcemap's `sourcesContent` field.
|
||||
const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null; |
||||
return new OriginalSource(source, sourceContent); |
||||
} |
||||
// Else, it's a real sourcemap, and we need to recurse into it to load its
|
||||
// source files.
|
||||
return build(new traceMapping.TraceMap(sourceMap, source), loader, source, depth); |
||||
}); |
||||
return new SourceMapTree(map, children); |
||||
} |
||||
|
||||
/** |
||||
* A SourceMap v3 compatible sourcemap, which only includes fields that were |
||||
* provided to it. |
||||
*/ |
||||
class SourceMap { |
||||
constructor(map, options) { |
||||
this.version = 3; // SourceMap spec says this should be first.
|
||||
this.file = map.file; |
||||
this.mappings = options.decodedMappings ? traceMapping.decodedMappings(map) : traceMapping.encodedMappings(map); |
||||
this.names = map.names; |
||||
this.sourceRoot = map.sourceRoot; |
||||
this.sources = map.sources; |
||||
if (!options.excludeContent && 'sourcesContent' in map) { |
||||
this.sourcesContent = map.sourcesContent; |
||||
} |
||||
} |
||||
toString() { |
||||
return JSON.stringify(this); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Traces through all the mappings in the root sourcemap, through the sources |
||||
* (and their sourcemaps), all the way back to the original source location. |
||||
* |
||||
* `loader` will be called every time we encounter a source file. If it returns |
||||
* a sourcemap, we will recurse into that sourcemap to continue the trace. If |
||||
* it returns a falsey value, that source file is treated as an original, |
||||
* unmodified source file. |
||||
* |
||||
* Pass `excludeContent` to exclude any self-containing source file content |
||||
* from the output sourcemap. |
||||
* |
||||
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of |
||||
* VLQ encoded) mappings. |
||||
*/ |
||||
function remapping(input, loader, options) { |
||||
const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false }; |
||||
const tree = buildSourceMapTree(input, loader); |
||||
return new SourceMap(traceMappings(tree), opts); |
||||
} |
||||
|
||||
return remapping; |
||||
|
||||
})); |
||||
//# sourceMappingURL=remapping.umd.js.map
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
import { SourceMapTree } from './source-map-tree'; |
||||
import type { SourceMapInput, SourceMapLoader } from './types'; |
||||
/** |
||||
* Recursively builds a tree structure out of sourcemap files, with each node |
||||
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of |
||||
* `OriginalSource`s and `SourceMapTree`s. |
||||
* |
||||
* Every sourcemap is composed of a collection of source files and mappings |
||||
* into locations of those source files. When we generate a `SourceMapTree` for |
||||
* the sourcemap, we attempt to load each source file's own sourcemap. If it |
||||
* does not have an associated sourcemap, it is considered an original, |
||||
* unmodified source file. |
||||
*/ |
||||
export default function buildSourceMapTree(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader): SourceMapTree; |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
/** |
||||
* Puts `key` into the backing array, if it is not already present. Returns |
||||
* the index of the `key` in the backing array. |
||||
*/ |
||||
export declare let put: (strarr: FastStringArray, key: string) => number; |
||||
/** |
||||
* FastStringArray acts like a `Set` (allowing only one occurrence of a string |
||||
* `key`), but provides the index of the `key` in the backing array. |
||||
* |
||||
* This is designed to allow synchronizing a second array with the contents of |
||||
* the backing array, like how `sourcesContent[i]` is the source content |
||||
* associated with `source[i]`, and there are never duplicates. |
||||
*/ |
||||
export declare class FastStringArray { |
||||
indexes: { |
||||
[key: string]: number; |
||||
}; |
||||
array: readonly string[]; |
||||
} |
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
import type { SourceMapSegmentObject } from './types'; |
||||
/** |
||||
* A "leaf" node in the sourcemap tree, representing an original, unmodified |
||||
* source file. Recursive segment tracing ends at the `OriginalSource`. |
||||
*/ |
||||
export default class OriginalSource { |
||||
content: string | null; |
||||
source: string; |
||||
constructor(source: string, content: string | null); |
||||
/** |
||||
* Tracing a `SourceMapSegment` ends when we get to an `OriginalSource`, |
||||
* meaning this line/column location originated from this source file. |
||||
*/ |
||||
originalPositionFor(line: number, column: number, name: string): SourceMapSegmentObject; |
||||
} |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
import SourceMap from './source-map'; |
||||
import type { SourceMapInput, SourceMapLoader, Options } from './types'; |
||||
export type { SourceMapSegment, RawSourceMap, DecodedSourceMap, SourceMapInput, SourceMapLoader, LoaderContext, Options, } from './types'; |
||||
/** |
||||
* Traces through all the mappings in the root sourcemap, through the sources |
||||
* (and their sourcemaps), all the way back to the original source location. |
||||
* |
||||
* `loader` will be called every time we encounter a source file. If it returns |
||||
* a sourcemap, we will recurse into that sourcemap to continue the trace. If |
||||
* it returns a falsey value, that source file is treated as an original, |
||||
* unmodified source file. |
||||
* |
||||
* Pass `excludeContent` to exclude any self-containing source file content |
||||
* from the output sourcemap. |
||||
* |
||||
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of |
||||
* VLQ encoded) mappings. |
||||
*/ |
||||
export default function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap; |
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
import type { TraceMap } from '@jridgewell/trace-mapping'; |
||||
import type OriginalSource from './original-source'; |
||||
import type { SourceMapSegmentObject } from './types'; |
||||
declare type Sources = OriginalSource | SourceMapTree; |
||||
declare const INVALID_MAPPING: undefined; |
||||
declare const SOURCELESS_MAPPING: null; |
||||
declare type MappingSource = SourceMapSegmentObject | typeof INVALID_MAPPING | typeof SOURCELESS_MAPPING; |
||||
/** |
||||
* traceMappings is only called on the root level SourceMapTree, and begins the process of |
||||
* resolving each mapping in terms of the original source files. |
||||
*/ |
||||
export declare let traceMappings: (tree: SourceMapTree) => TraceMap; |
||||
/** |
||||
* SourceMapTree represents a single sourcemap, with the ability to trace |
||||
* mappings into its child nodes (which may themselves be SourceMapTrees). |
||||
*/ |
||||
export declare class SourceMapTree { |
||||
map: TraceMap; |
||||
sources: Sources[]; |
||||
constructor(map: TraceMap, sources: Sources[]); |
||||
/** |
||||
* originalPositionFor is only called on children SourceMapTrees. It recurses down |
||||
* into its own child SourceMapTrees, until we find the original source map. |
||||
*/ |
||||
originalPositionFor(line: number, column: number, name: string): MappingSource; |
||||
} |
||||
export {}; |
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
import type { TraceMap } from '@jridgewell/trace-mapping'; |
||||
import type { DecodedSourceMap, RawSourceMap, Options } from './types'; |
||||
/** |
||||
* A SourceMap v3 compatible sourcemap, which only includes fields that were |
||||
* provided to it. |
||||
*/ |
||||
export default class SourceMap { |
||||
file?: string | null; |
||||
mappings: RawSourceMap['mappings'] | DecodedSourceMap['mappings']; |
||||
sourceRoot?: string; |
||||
names: string[]; |
||||
sources: (string | null)[]; |
||||
sourcesContent?: (string | null)[]; |
||||
version: 3; |
||||
constructor(map: TraceMap, options: Options); |
||||
toString(): string; |
||||
} |
@ -0,0 +1,40 @@
@@ -0,0 +1,40 @@
|
||||
interface SourceMapV3 { |
||||
file?: string | null; |
||||
names: string[]; |
||||
sourceRoot?: string; |
||||
sources: (string | null)[]; |
||||
sourcesContent?: (string | null)[]; |
||||
version: 3; |
||||
} |
||||
declare type Column = number; |
||||
declare type SourcesIndex = number; |
||||
declare type SourceLine = number; |
||||
declare type SourceColumn = number; |
||||
declare type NamesIndex = number; |
||||
export declare type SourceMapSegment = [Column] | [Column, SourcesIndex, SourceLine, SourceColumn] | [Column, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; |
||||
export interface RawSourceMap extends SourceMapV3 { |
||||
mappings: string; |
||||
} |
||||
export interface DecodedSourceMap extends SourceMapV3 { |
||||
mappings: SourceMapSegment[][]; |
||||
} |
||||
export interface SourceMapSegmentObject { |
||||
column: number; |
||||
line: number; |
||||
name: string; |
||||
source: string; |
||||
content: string | null; |
||||
} |
||||
export declare type SourceMapInput = string | RawSourceMap | DecodedSourceMap; |
||||
export declare type LoaderContext = { |
||||
readonly importer: string; |
||||
readonly depth: number; |
||||
source: string; |
||||
content: string | null | undefined; |
||||
}; |
||||
export declare type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined; |
||||
export declare type Options = { |
||||
excludeContent?: boolean; |
||||
decodedMappings?: boolean; |
||||
}; |
||||
export {}; |
@ -0,0 +1,62 @@
@@ -0,0 +1,62 @@
|
||||
{ |
||||
"name": "@ampproject/remapping", |
||||
"version": "2.1.2", |
||||
"description": "Remap sequential sourcemaps through transformations to point at the original source code", |
||||
"keywords": [ |
||||
"source", |
||||
"map", |
||||
"remap" |
||||
], |
||||
"main": "dist/remapping.umd.js", |
||||
"module": "dist/remapping.mjs", |
||||
"typings": "dist/types/remapping.d.ts", |
||||
"files": [ |
||||
"dist" |
||||
], |
||||
"author": "Justin Ridgewell <jridgewell@google.com>", |
||||
"repository": { |
||||
"type": "git", |
||||
"url": "git+https://github.com/ampproject/remapping.git" |
||||
}, |
||||
"license": "Apache-2.0", |
||||
"engines": { |
||||
"node": ">=6.0.0" |
||||
}, |
||||
"scripts": { |
||||
"build": "run-s -n build:*", |
||||
"build:rollup": "rollup -c rollup.config.js", |
||||
"build:ts": "tsc --project tsconfig.build.json", |
||||
"lint": "run-s -n lint:*", |
||||
"lint:prettier": "npm run test:lint:prettier -- --write", |
||||
"lint:ts": "npm run test:lint:ts -- --fix", |
||||
"prebuild": "rm -rf dist", |
||||
"prepublishOnly": "npm run preversion", |
||||
"preversion": "run-s test build", |
||||
"test": "run-s -n test:lint test:only", |
||||
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand", |
||||
"test:lint": "run-s -n test:lint:*", |
||||
"test:lint:prettier": "prettier --check '{src,test}/**/*.ts'", |
||||
"test:lint:ts": "eslint '{src,test}/**/*.ts'", |
||||
"test:only": "jest --coverage", |
||||
"test:watch": "jest --coverage --watch" |
||||
}, |
||||
"devDependencies": { |
||||
"@rollup/plugin-typescript": "8.3.0", |
||||
"@types/jest": "27.4.0", |
||||
"@typescript-eslint/eslint-plugin": "5.10.2", |
||||
"@typescript-eslint/parser": "5.10.2", |
||||
"eslint": "8.8.0", |
||||
"eslint-config-prettier": "8.3.0", |
||||
"jest": "27.4.7", |
||||
"jest-config": "27.4.7", |
||||
"npm-run-all": "4.1.5", |
||||
"prettier": "2.5.1", |
||||
"rollup": "2.67.0", |
||||
"ts-jest": "27.1.3", |
||||
"tslib": "2.3.1", |
||||
"typescript": "4.5.5" |
||||
}, |
||||
"dependencies": { |
||||
"@jridgewell/trace-mapping": "^0.3.0" |
||||
} |
||||
} |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
MIT License |
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining |
||||
a copy of this software and associated documentation files (the |
||||
"Software"), to deal in the Software without restriction, including |
||||
without limitation the rights to use, copy, modify, merge, publish, |
||||
distribute, sublicense, and/or sell copies of the Software, and to |
||||
permit persons to whom the Software is furnished to do so, subject to |
||||
the following conditions: |
||||
|
||||
The above copyright notice and this permission notice shall be |
||||
included in all copies or substantial portions of the Software. |
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
# @babel/code-frame |
||||
|
||||
> Generate errors that contain a code frame that point to source locations. |
||||
|
||||
See our website [@babel/code-frame](https://babeljs.io/docs/en/babel-code-frame) for more information. |
||||
|
||||
## Install |
||||
|
||||
Using npm: |
||||
|
||||
```sh |
||||
npm install --save-dev @babel/code-frame |
||||
``` |
||||
|
||||
or using yarn: |
||||
|
||||
```sh |
||||
yarn add @babel/code-frame --dev |
||||
``` |
@ -0,0 +1,163 @@
@@ -0,0 +1,163 @@
|
||||
"use strict"; |
||||
|
||||
Object.defineProperty(exports, "__esModule", { |
||||
value: true |
||||
}); |
||||
exports.codeFrameColumns = codeFrameColumns; |
||||
exports.default = _default; |
||||
|
||||
var _highlight = require("@babel/highlight"); |
||||
|
||||
let deprecationWarningShown = false; |
||||
|
||||
function getDefs(chalk) { |
||||
return { |
||||
gutter: chalk.grey, |
||||
marker: chalk.red.bold, |
||||
message: chalk.red.bold |
||||
}; |
||||
} |
||||
|
||||
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/; |
||||
|
||||
function getMarkerLines(loc, source, opts) { |
||||
const startLoc = Object.assign({ |
||||
column: 0, |
||||
line: -1 |
||||
}, loc.start); |
||||
const endLoc = Object.assign({}, startLoc, loc.end); |
||||
const { |
||||
linesAbove = 2, |
||||
linesBelow = 3 |
||||
} = opts || {}; |
||||
const startLine = startLoc.line; |
||||
const startColumn = startLoc.column; |
||||
const endLine = endLoc.line; |
||||
const endColumn = endLoc.column; |
||||
let start = Math.max(startLine - (linesAbove + 1), 0); |
||||
let end = Math.min(source.length, endLine + linesBelow); |
||||
|
||||
if (startLine === -1) { |
||||
start = 0; |
||||
} |
||||
|
||||
if (endLine === -1) { |
||||
end = source.length; |
||||
} |
||||
|
||||
const lineDiff = endLine - startLine; |
||||
const markerLines = {}; |
||||
|
||||
if (lineDiff) { |
||||
for (let i = 0; i <= lineDiff; i++) { |
||||
const lineNumber = i + startLine; |
||||
|
||||
if (!startColumn) { |
||||
markerLines[lineNumber] = true; |
||||
} else if (i === 0) { |
||||
const sourceLength = source[lineNumber - 1].length; |
||||
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1]; |
||||
} else if (i === lineDiff) { |
||||
markerLines[lineNumber] = [0, endColumn]; |
||||
} else { |
||||
const sourceLength = source[lineNumber - i].length; |
||||
markerLines[lineNumber] = [0, sourceLength]; |
||||
} |
||||
} |
||||
} else { |
||||
if (startColumn === endColumn) { |
||||
if (startColumn) { |
||||
markerLines[startLine] = [startColumn, 0]; |
||||
} else { |
||||
markerLines[startLine] = true; |
||||
} |
||||
} else { |
||||
markerLines[startLine] = [startColumn, endColumn - startColumn]; |
||||
} |
||||
} |
||||
|
||||
return { |
||||
start, |
||||
end, |
||||
markerLines |
||||
}; |
||||
} |
||||
|
||||
function codeFrameColumns(rawLines, loc, opts = {}) { |
||||
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts); |
||||
const chalk = (0, _highlight.getChalk)(opts); |
||||
const defs = getDefs(chalk); |
||||
|
||||
const maybeHighlight = (chalkFn, string) => { |
||||
return highlighted ? chalkFn(string) : string; |
||||
}; |
||||
|
||||
const lines = rawLines.split(NEWLINE); |
||||
const { |
||||
start, |
||||
end, |
||||
markerLines |
||||
} = getMarkerLines(loc, lines, opts); |
||||
const hasColumns = loc.start && typeof loc.start.column === "number"; |
||||
const numberMaxWidth = String(end).length; |
||||
const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines; |
||||
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => { |
||||
const number = start + 1 + index; |
||||
const paddedNumber = ` ${number}`.slice(-numberMaxWidth); |
||||
const gutter = ` ${paddedNumber} |`; |
||||
const hasMarker = markerLines[number]; |
||||
const lastMarkerLine = !markerLines[number + 1]; |
||||
|
||||
if (hasMarker) { |
||||
let markerLine = ""; |
||||
|
||||
if (Array.isArray(hasMarker)) { |
||||
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " "); |
||||
const numberOfMarkers = hasMarker[1] || 1; |
||||
markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), " ", markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join(""); |
||||
|
||||
if (lastMarkerLine && opts.message) { |
||||
markerLine += " " + maybeHighlight(defs.message, opts.message); |
||||
} |
||||
} |
||||
|
||||
return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line.length > 0 ? ` ${line}` : "", markerLine].join(""); |
||||
} else { |
||||
return ` ${maybeHighlight(defs.gutter, gutter)}${line.length > 0 ? ` ${line}` : ""}`; |
||||
} |
||||
}).join("\n"); |
||||
|
||||
if (opts.message && !hasColumns) { |
||||
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`; |
||||
} |
||||
|
||||
if (highlighted) { |
||||
return chalk.reset(frame); |
||||
} else { |
||||
return frame; |
||||
} |
||||
} |
||||
|
||||
function _default(rawLines, lineNumber, colNumber, opts = {}) { |
||||
if (!deprecationWarningShown) { |
||||
deprecationWarningShown = true; |
||||
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; |
||||
|
||||
if (process.emitWarning) { |
||||
process.emitWarning(message, "DeprecationWarning"); |
||||
} else { |
||||
const deprecationError = new Error(message); |
||||
deprecationError.name = "DeprecationWarning"; |
||||
console.warn(new Error(message)); |
||||
} |
||||
} |
||||
|
||||
colNumber = Math.max(colNumber, 0); |
||||
const location = { |
||||
start: { |
||||
column: colNumber, |
||||
line: lineNumber |
||||
} |
||||
}; |
||||
return codeFrameColumns(rawLines, location, opts); |
||||
} |
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
{ |
||||
"name": "@babel/code-frame", |
||||
"version": "7.16.7", |
||||
"description": "Generate errors that contain a code frame that point to source locations.", |
||||
"author": "The Babel Team (https://babel.dev/team)", |
||||
"homepage": "https://babel.dev/docs/en/next/babel-code-frame", |
||||
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen", |
||||
"license": "MIT", |
||||
"publishConfig": { |
||||
"access": "public" |
||||
}, |
||||
"repository": { |
||||
"type": "git", |
||||
"url": "https://github.com/babel/babel.git", |
||||
"directory": "packages/babel-code-frame" |
||||
}, |
||||
"main": "./lib/index.js", |
||||
"dependencies": { |
||||
"@babel/highlight": "^7.16.7" |
||||
}, |
||||
"devDependencies": { |
||||
"@types/chalk": "^2.0.0", |
||||
"chalk": "^2.0.0", |
||||
"strip-ansi": "^4.0.0" |
||||
}, |
||||
"engines": { |
||||
"node": ">=6.9.0" |
||||
} |
||||
} |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
MIT License |
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining |
||||
a copy of this software and associated documentation files (the |
||||
"Software"), to deal in the Software without restriction, including |
||||
without limitation the rights to use, copy, modify, merge, publish, |
||||
distribute, sublicense, and/or sell copies of the Software, and to |
||||
permit persons to whom the Software is furnished to do so, subject to |
||||
the following conditions: |
||||
|
||||
The above copyright notice and this permission notice shall be |
||||
included in all copies or substantial portions of the Software. |
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
# @babel/compat-data |
||||
|
||||
> |
||||
|
||||
See our website [@babel/compat-data](https://babeljs.io/docs/en/babel-compat-data) for more information. |
||||
|
||||
## Install |
||||
|
||||
Using npm: |
||||
|
||||
```sh |
||||
npm install --save @babel/compat-data |
||||
``` |
||||
|
||||
or using yarn: |
||||
|
||||
```sh |
||||
yarn add @babel/compat-data |
||||
``` |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
module.exports = require("./data/corejs2-built-ins.json"); |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
module.exports = require("./data/corejs3-shipped-proposals.json"); |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
[ |
||||
"esnext.global-this", |
||||
"esnext.promise.all-settled", |
||||
"esnext.string.match-all" |
||||
] |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue