From 47ec6d46685d532e0febb952658368c21df725b2 Mon Sep 17 00:00:00 2001 From: Frederik Bosch Date: Tue, 24 Oct 2023 13:39:38 +0200 Subject: [PATCH] replace proposal with transform plugin for dynamic import --- lib/esnext-transpiler.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/esnext-transpiler.js b/lib/esnext-transpiler.js index f6d14a5..ab4eeb9 100644 --- a/lib/esnext-transpiler.js +++ b/lib/esnext-transpiler.js @@ -30,7 +30,7 @@ function LocalTranspiler (inputTree, projectName, _options) { transformAmdModule, '@babel/plugin-transform-strict-mode', '@babel/plugin-transform-classes', - '@babel/plugin-proposal-dynamic-import', + '@babel/plugin-transform-dynamic-import', '@babel/plugin-transform-async-to-generator', ] }); @@ -54,7 +54,7 @@ function VendorTranspiler (inputTree, _options) { transformAmdModule, '@babel/plugin-transform-strict-mode', '@babel/plugin-transform-classes', - '@babel/plugin-proposal-dynamic-import', + '@babel/plugin-transform-dynamic-import', ] }); diff --git a/package.json b/package.json index a03cc5f..9e792a7 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "main": "lib/dtk-app.js", "dependencies": { "@babel/eslint-parser": "^7.5.4", - "@babel/plugin-proposal-dynamic-import": "^7.18.6", + "@babel/plugin-transform-dynamic-import": "^7.18.6", "@babel/plugin-transform-async-to-generator": "^7.18.6", "@babel/plugin-transform-classes": "^7.19.0", "@babel/plugin-transform-modules-amd": "^7.19.6",