copy babel config to vite config, to separate the frontend from the backend config

This commit is contained in:
Hans Pagel committed 2023-01-19 14:59:14 +01:00
1 parent 50973b7408
commit a41f35d289
2 files changed
+19 -5

No files matched your search

+1 -5
View File
@@ -9,11 +9,7 @@
"version": "3",
"proposals": true
},
"useBuiltIns": "usage",
"exclude": [
"transform-modules-commonjs",
"proposal-dynamic-import"
]
"useBuiltIns": "usage"
}
]
],
+18
View File
@@ -14,6 +14,24 @@ export default defineConfig({
react({
babel: {
babelrc: true,
presets: [
"@babel/preset-react",
"@babel/preset-typescript",
[
"@babel/preset-env",
{
corejs: {
version: "3",
proposals: true,
},
useBuiltIns: "usage",
exclude: [
"transform-modules-commonjs",
"proposal-dynamic-import",
],
},
],
],
},
}),
VitePWA(),