MDL-66653 javascript: Support ES6 dynamic imports
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 11 Sep 2019 06:06:32 +0000 (14:06 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 11 Sep 2019 06:06:32 +0000 (14:06 +0800)
Gruntfile.js
npm-shrinkwrap.json
package.json

index bd41cf3..f05bb19 100644 (file)
@@ -138,6 +138,7 @@ module.exports = function(grunt) {
                 comments: false,
                 plugins: [
                     'transform-es2015-modules-amd-lazy',
+                    'system-import-transformer',
                     // This plugin modifies the Babel transpiling for "export default"
                     // so that if it's used then only the exported value is returned
                     // by the generated AMD module.
index 1603e53..e54065e 100644 (file)
         "babel-helper-is-void-0": "^0.4.3"
       }
     },
+    "babel-plugin-system-import-transformer": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/babel-plugin-system-import-transformer/-/babel-plugin-system-import-transformer-4.0.0.tgz",
+      "integrity": "sha512-l+xJk+z1U8tWX1FZfBCd/ebKOZa7JLAQ91YBmtNO0e/e5v/RwIM+8IGBkliXcSoP7xd+CF7L6Yu4O3wmQrya8g==",
+      "dev": true,
+      "requires": {
+        "@babel/core": "^7.0.0",
+        "@babel/helper-plugin-utils": "^7.0.0",
+        "@babel/plugin-syntax-dynamic-import": "^7.0.0"
+      }
+    },
     "babel-plugin-transform-es2015-modules-amd-lazy": {
       "version": "2.0.1",
       "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd-lazy/-/babel-plugin-transform-es2015-modules-amd-lazy-2.0.1.tgz",
index 036d3ee..a2db6ba 100644 (file)
@@ -12,6 +12,7 @@
     "ajv": "6.9.1",
     "async": "1.5.2",
     "babel-eslint": "10.0.1",
+    "babel-plugin-system-import-transformer": "^4.0.0",
     "babel-plugin-transform-es2015-modules-amd-lazy": "2.0.1",
     "babel-preset-minify": "0.5.0",
     "eslint": "4.12.1",