Skip to content

Commit

Permalink
fix: exclude dynamic import plugin from babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Mar 6, 2023
1 parent b88d89e commit bb3da7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
],
};

0 comments on commit bb3da7e

Please sign in to comment.