Skip to content

Commit 97ada26

Browse files
committed
feat: support dynamic import in babel
1 parent dd33f21 commit 97ada26

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

babel/.babelrc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
["@babel/preset-env", {
44
"loose": true,
55
"targets": "edge >= 15, firefox >= 53, chrome >= 55, safari >= 11",
6-
"modules": false
6+
"modules": false,
7+
"exclude": ["@babel/plugin-proposal-dynamic-import"]
78
}]
89
],
910
"plugins": [
1011
["@babel/plugin-proposal-decorators", { "legacy": true }],
11-
["@babel/plugin-proposal-class-properties", { "loose": true }]
12+
["@babel/plugin-proposal-class-properties", { "loose": true }],
13+
"@babel/plugin-syntax-dynamic-import"
1214
]
1315
}

babel/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"devDependencies": {
33
"@babel/plugin-proposal-decorators": "^7.0.0",
44
"@babel/plugin-proposal-class-properties": "^7.0.0",
5+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
56
"@babel/core": "^7.0.0",
67
"@babel/preset-env": "^7.0.0",
78
"babel-eslint": "^10.0.0",

0 commit comments

Comments
 (0)