From bb3da7ec48ed0eea02935e7ae5c010a75abd2e50 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Wed, 14 Sep 2022 12:37:22 +0200 Subject: [PATCH] fix: exclude dynamic import plugin from babel config --- babel.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 }], ], };