From e379b3183f379566455cc22fbc1111d11d88f4e0 Mon Sep 17 00:00:00 2001 From: lupath <849104822@qq.com> Date: Sun, 30 Apr 2023 21:04:44 +0800 Subject: [PATCH] fix: babel configuration not work (#505) Co-authored-by: lupath --- .babelrc | 14 ++++++++++++++ .babelrc.js | 11 ----------- package.json | 3 +-- 3 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 .babelrc delete mode 100644 .babelrc.js diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..ad955f8 --- /dev/null +++ b/.babelrc @@ -0,0 +1,14 @@ +{ + "presets": [ + ["env", { + "modules": false + }] + ], + "plugins": [ + "syntax-dynamic-import", + "external-helpers" + ], + "ignore": [ + "dist/*.js" + ] +} diff --git a/.babelrc.js b/.babelrc.js deleted file mode 100644 index 6831c5f..0000000 --- a/.babelrc.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - presets: [ - require('@babel/preset-env') - ], - plugins: [ - require('@babel/plugin-syntax-dynamic-import') - ], - ignore: [ - 'dist/*.js' - ] -} \ No newline at end of file diff --git a/package.json b/package.json index 6f49889..e97446f 100644 --- a/package.json +++ b/package.json @@ -38,13 +38,12 @@ ] }, "devDependencies": { - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/preset-env": "^7.12.17", "@rollup/plugin-replace": "^2.3.4", "assign-deep": "^1.0.1", "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-plugin-external-helpers": "^6.22.0", + "babel-plugin-syntax-dynamic-import": "^6.18.0", "babel-polyfill": "^6.26.0", "babel-preset-env": "^1.7.0", "babel-preset-stage-0": "^6.24.1",