Skip to content

Commit bb3da7e

Browse files
committed
fix: exclude dynamic import plugin from babel config
1 parent b88d89e commit bb3da7e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

babel.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ const supportedNodeVersion = semver.minVersion(pkg.engines.node).version;
77

88
module.exports = {
99
presets: [
10-
['@babel/preset-env', { targets: { node: supportedNodeVersion } }],
10+
[
11+
'@babel/preset-env',
12+
{
13+
exclude: ['@babel/plugin-proposal-dynamic-import'],
14+
targets: { node: supportedNodeVersion },
15+
},
16+
],
1117
['@babel/preset-typescript', { allowDeclareFields: true }],
1218
],
1319
};

0 commit comments

Comments
 (0)