Add support for dynamic imports (#43716)

This commit is contained in:
Josh Dover 2019-08-22 09:48:39 -05:00 committed by GitHub
parent e568c3dfde
commit c2ef2c8f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -5,8 +5,9 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/plugin-proposal-class-properties": "7.4.4",
"@babel/preset-react":"7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "7.4.5",
"@babel/preset-react": "7.0.0",
"@babel/preset-typescript": "7.3.3",
"@kbn/elastic-idx": "1.0.0",
"babel-plugin-add-module-exports": "1.0.2",

View file

@ -29,6 +29,9 @@ module.exports = () => {
},
],
require('./common_preset'),
],
plugins: [
'@babel/plugin-syntax-dynamic-import'
]
};
};