diff --git a/.babelrc b/.babelrc index a90fee267c..333c2119e8 100644 --- a/.babelrc +++ b/.babelrc @@ -9,7 +9,11 @@ "version": "3", "proposals": true }, - "useBuiltIns": "usage" + "useBuiltIns": "usage", + "exclude": [ + "transform-modules-commonjs", + "proposal-dynamic-import" + ] } ] ], diff --git a/package.json b/package.json index 1d2daff144..1faa8b9424 100644 --- a/package.json +++ b/package.json @@ -307,7 +307,6 @@ "@types/validator": "^13.7.10", "@typescript-eslint/eslint-plugin": "^5.40.0", "@typescript-eslint/parser": "^5.40.0", - "@vitejs/plugin-legacy": "^3.0.1", "babel-eslint": "^10.1.0", "babel-jest": "^29.3.1", "babel-loader": "^8.1.0", diff --git a/vite.config.ts b/vite.config.ts index cd9223141a..bbc47eb8c9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,4 @@ import path from "path"; -import legacy from "@vitejs/plugin-legacy"; import react from "@vitejs/plugin-react"; import nodeGlobals from "rollup-plugin-node-globals"; import { webpackStats } from "rollup-plugin-webpack-stats"; @@ -11,15 +10,9 @@ export default defineConfig({ port: 3001, }, plugins: [ - legacy({ - targets: "> 0.25%, not dead", - }), react({ babel: { babelrc: true, - parserOpts: { - plugins: ["decorators-legacy"], - }, }, }), ], diff --git a/yarn.lock b/yarn.lock index f84854db1d..e7fa1b6e31 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1033,11 +1033,6 @@ dependencies: regenerator-runtime "^0.13.11" -"@babel/standalone@^7.20.6": - version "7.20.12" - resolved "https://registry.yarnpkg.com/@babel/standalone/-/standalone-7.20.12.tgz#ae882b8642b4efb1ddd80c8a64a929e028095562" - integrity sha512-hK/X+m1il3w1tYS4H8LDaGCEdiT47SVqEXY8RiEAgou26BystipSU8ZL6EvBR6t5l7lTv0ilBiChXWblKJ5iUA== - "@babel/template@^7.16.0", "@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.3.3": version "7.20.7" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8" @@ -3801,17 +3796,6 @@ "@typescript-eslint/types" "5.40.0" eslint-visitor-keys "^3.3.0" -"@vitejs/plugin-legacy@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@vitejs/plugin-legacy/-/plugin-legacy-3.0.1.tgz#bccc0eaf15a64e1854313acebec879854e413deb" - integrity sha512-XCtEjxoR3rmy000ujYRBp5kggWqzHz9+F20/yIMUWOzbvu0+KW1e14Fvb8h7SpNn+bfjGW1RiAs1Vrgb7Js+iQ== - dependencies: - "@babel/standalone" "^7.20.6" - core-js "^3.26.1" - magic-string "^0.27.0" - regenerator-runtime "^0.13.11" - systemjs "^6.13.0" - "@vitejs/plugin-react@^3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-3.0.0.tgz#f36ee1b2ce958dd11ac63fdf746a3b27b0d258ed" @@ -14773,11 +14757,6 @@ synckit@^0.8.4: "@pkgr/utils" "^2.3.1" tslib "^2.4.0" -systemjs@^6.13.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/systemjs/-/systemjs-6.13.0.tgz#7b28e74b44352e1650e8652499f42de724c3fc7f" - integrity sha512-P3cgh2bpaPvAO2NE3uRp/n6hmk4xPX4DQf+UzTlCAycssKdqhp6hjw+ENWe+aUS7TogKRFtptMosTSFeC6R55g== - table@^6.0.9: version "6.8.0" resolved "https://registry.yarnpkg.com/table/-/table-6.8.0.tgz#87e28f14fa4321c3377ba286f07b79b281a3b3ca"