Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@babel/plugin-transform-dynamic-import

Package Overview
Dependencies
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-dynamic-import - npm Package Compare versions

Comparing version
8.0.0-beta.4
to
8.0.0-rc.1
+2
-2
lib/index.js

@@ -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-beta.4");
api.assertVersion("^7.0.0-0 || ^8.0.0 || 8.0.0-rc.1");
return {

@@ -23,3 +23,3 @@ name: "transform-dynamic-import",

pre() {
this.file.set("@babel/plugin-proposal-dynamic-import", "8.0.0-beta.4");
this.file.set("@babel/plugin-proposal-dynamic-import", "8.0.0-rc.1");
},

@@ -26,0 +26,0 @@ visitor: {

@@ -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,oCAAoB,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,gBAEzC,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,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;;;;"}
{
"name": "@babel/plugin-transform-dynamic-import",
"version": "8.0.0-beta.4",
"version": "8.0.0-rc.1",
"description": "Transform import() expressions",

@@ -19,3 +19,3 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^8.0.0-beta.4"
"@babel/helper-plugin-utils": "^8.0.0-rc.1"
},

@@ -26,4 +26,4 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^8.0.0-beta.4",
"@babel/helper-plugin-test-runner": "^8.0.0-beta.4"
"@babel/core": "^8.0.0-rc.1",
"@babel/helper-plugin-test-runner": "^8.0.0-rc.1"
},

@@ -30,0 +30,0 @@ "engines": {