@babel/plugin-transform-dynamic-import
Advanced tools
+2
-2
@@ -17,3 +17,3 @@ import { declare } from '@babel/helper-plugin-utils'; | ||
| var index = declare(api => { | ||
| api.assertVersion("^7.0.0-0 || ^8.0.0 || 8.0.0-rc.2"); | ||
| api.assertVersion("^7.0.0-0 || ^8.0.0 || 8.0.0-rc.3"); | ||
| return { | ||
@@ -23,3 +23,3 @@ name: "transform-dynamic-import", | ||
| pre() { | ||
| this.file.set("@babel/plugin-proposal-dynamic-import", "8.0.0-rc.2"); | ||
| this.file.set("@babel/plugin-proposal-dynamic-import", "8.0.0-rc.3"); | ||
| }, | ||
@@ -26,0 +26,0 @@ visitor: { |
+1
-1
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nconst SUPPORTED_MODULES = new Set([\"commonjs\", \"amd\", \"systemjs\"]);\n\nconst MODULES_NOT_FOUND = `\\\n@babel/plugin-transform-dynamic-import depends on a modules\ntransform plugin. Supported plugins are:\n - @babel/plugin-transform-modules-commonjs ^7.4.0\n - @babel/plugin-transform-modules-amd ^7.4.0\n - @babel/plugin-transform-modules-systemjs ^7.4.0\n\nIf you are using Webpack or Rollup and thus don't want\nBabel to transpile your imports and exports, you can use\nthe @babel/plugin-syntax-dynamic-import plugin and let your\nbundler handle dynamic imports.\n`;\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-dynamic-import\",\n manipulateOptions: undefined,\n pre() {\n // We keep using the old name, for compatibility with older\n // version of the CommonJS transform.\n this.file.set(\n \"@babel/plugin-proposal-dynamic-import\",\n PACKAGE_JSON.version,\n );\n },\n\n visitor: {\n Program() {\n const modules = this.file.get(\"@babel/plugin-transform-modules-*\");\n\n if (!SUPPORTED_MODULES.has(modules)) {\n throw new Error(MODULES_NOT_FOUND);\n }\n },\n },\n };\n});\n"],"names":["SUPPORTED_MODULES","Set","MODULES_NOT_FOUND","declare","api","assertVersion","name","manipulateOptions","undefined","pre","file","set","visitor","Program","modules","get","has","Error"],"mappings":";;AAEA,MAAMA,iBAAiB,GAAG,IAAIC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAA;AAElE,MAAMC,iBAAiB,GAAG,CAAA;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAA;AAED,YAAeC,OAAO,CAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAA,kCAAoB,CAAC,CAAA;EAEtC,OAAO;AACLC,IAAAA,IAAI,EAAE,0BAA0B;AAChCC,IAAAA,iBAAiB,EAAEC,SAAS;AAC5BC,IAAAA,GAAGA,GAAG;AAGJ,MAAA,IAAI,CAACC,IAAI,CAACC,GAAG,CACX,uCAAuC,cAEzC,CAAC,CAAA;KACF;AAEDC,IAAAA,OAAO,EAAE;AACPC,MAAAA,OAAOA,GAAG;QACR,MAAMC,OAAO,GAAG,IAAI,CAACJ,IAAI,CAACK,GAAG,CAAC,mCAAmC,CAAC,CAAA;AAElE,QAAA,IAAI,CAACf,iBAAiB,CAACgB,GAAG,CAACF,OAAO,CAAC,EAAE;AACnC,UAAA,MAAM,IAAIG,KAAK,CAACf,iBAAiB,CAAC,CAAA;AACpC,SAAA;AACF,OAAA;AACF,KAAA;GACD,CAAA;AACH,CAAC,CAAC;;;;"} | ||
| {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nconst SUPPORTED_MODULES = new Set([\"commonjs\", \"amd\", \"systemjs\"]);\n\nconst MODULES_NOT_FOUND = `\\\n@babel/plugin-transform-dynamic-import depends on a modules\ntransform plugin. Supported plugins are:\n - @babel/plugin-transform-modules-commonjs ^7.4.0\n - @babel/plugin-transform-modules-amd ^7.4.0\n - @babel/plugin-transform-modules-systemjs ^7.4.0\n\nIf you are using Webpack or Rollup and thus don't want\nBabel to transpile your imports and exports, you can use\nthe @babel/plugin-syntax-dynamic-import plugin and let your\nbundler handle dynamic imports.\n`;\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-dynamic-import\",\n manipulateOptions: undefined,\n pre() {\n // We keep using the old name, for compatibility with older\n // version of the CommonJS transform.\n this.file.set(\n \"@babel/plugin-proposal-dynamic-import\",\n PACKAGE_JSON.version,\n );\n },\n\n visitor: {\n Program() {\n const modules = this.file.get(\"@babel/plugin-transform-modules-*\");\n\n if (!SUPPORTED_MODULES.has(modules)) {\n throw new Error(MODULES_NOT_FOUND);\n }\n },\n },\n };\n});\n"],"names":["SUPPORTED_MODULES","Set","MODULES_NOT_FOUND","declare","api","assertVersion","name","manipulateOptions","undefined","pre","file","set","visitor","Program","modules","get","has","Error"],"mappings":";;AAEA,MAAMA,iBAAiB,GAAG,IAAIC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;AAElE,MAAMC,iBAAiB,GAAG,CAAA;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;AAED,YAAeC,OAAO,CAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAA,kCAAoB,CAAC;EAEtC,OAAO;AACLC,IAAAA,IAAI,EAAE,0BAA0B;AAChCC,IAAAA,iBAAiB,EAAEC,SAAS;AAC5BC,IAAAA,GAAGA,GAAG;AAGJ,MAAA,IAAI,CAACC,IAAI,CAACC,GAAG,CACX,uCAAuC,cAEzC,CAAC;IACH,CAAC;AAEDC,IAAAA,OAAO,EAAE;AACPC,MAAAA,OAAOA,GAAG;QACR,MAAMC,OAAO,GAAG,IAAI,CAACJ,IAAI,CAACK,GAAG,CAAC,mCAAmC,CAAC;AAElE,QAAA,IAAI,CAACf,iBAAiB,CAACgB,GAAG,CAACF,OAAO,CAAC,EAAE;AACnC,UAAA,MAAM,IAAIG,KAAK,CAACf,iBAAiB,CAAC;AACpC,QAAA;AACF,MAAA;AACF;GACD;AACH,CAAC,CAAC;;;;"} |
+5
-5
| { | ||
| "name": "@babel/plugin-transform-dynamic-import", | ||
| "version": "8.0.0-rc.2", | ||
| "version": "8.0.0-rc.3", | ||
| "description": "Transform import() expressions", | ||
@@ -19,10 +19,10 @@ "repository": { | ||
| "dependencies": { | ||
| "@babel/helper-plugin-utils": "^8.0.0-rc.2" | ||
| "@babel/helper-plugin-utils": "^8.0.0-rc.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "@babel/core": "^8.0.0-rc.2" | ||
| "@babel/core": "^8.0.0-rc.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/core": "^8.0.0-rc.2", | ||
| "@babel/helper-plugin-test-runner": "^8.0.0-rc.2" | ||
| "@babel/core": "^8.0.0-rc.3", | ||
| "@babel/helper-plugin-test-runner": "^8.0.0-rc.3" | ||
| }, | ||
@@ -29,0 +29,0 @@ "engines": { |
6166
-0.63%