diff --git a/babel.config.js b/babel.config.js index 8975c74..4ca977c 100644 --- a/babel.config.js +++ b/babel.config.js @@ -7,7 +7,13 @@ const supportedNodeVersion = semver.minVersion(pkg.engines.node).version; module.exports = { presets: [ - ['@babel/preset-env', { targets: { node: supportedNodeVersion } }], + [ + '@babel/preset-env', + { + exclude: ['@babel/plugin-proposal-dynamic-import'], + targets: { node: supportedNodeVersion }, + }, + ], ['@babel/preset-typescript', { allowDeclareFields: true }], ], };