diff --git a/Gruntfile.js b/Gruntfile.js index bd41cf33b88..f05bb1940fe 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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. diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 1603e536544..e54065eea0f 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1327,6 +1327,17 @@ "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", diff --git a/package.json b/package.json index 036d3ee9c6c..a2db6babab0 100644 --- a/package.json +++ b/package.json @@ -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",