Skip to content

Commit c2ef2c8

Browse files
authored
Add support for dynamic imports (#43716)
1 parent e568c3d commit c2ef2c8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/kbn-babel-preset/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"license": "Apache-2.0",
66
"dependencies": {
77
"@babel/plugin-proposal-class-properties": "7.4.4",
8-
"@babel/preset-react":"7.0.0",
8+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
99
"@babel/preset-env": "7.4.5",
10+
"@babel/preset-react": "7.0.0",
1011
"@babel/preset-typescript": "7.3.3",
1112
"@kbn/elastic-idx": "1.0.0",
1213
"babel-plugin-add-module-exports": "1.0.2",

packages/kbn-babel-preset/webpack_preset.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ module.exports = () => {
2929
},
3030
],
3131
require('./common_preset'),
32+
],
33+
plugins: [
34+
'@babel/plugin-syntax-dynamic-import'
3235
]
3336
};
3437
};

0 commit comments

Comments
 (0)