mirror of
https://github.com/outline/outline.git
synced 2026-11-25 07:04:37 +03:00
copy babel config to vite config, to separate the frontend from the backend config
This commit is contained in:
1 parent
50973b7408
commit
a41f35d289
2 files changed
+19
-5
No files matched your search
@@ -9,11 +9,7 @@
|
||||
"version": "3",
|
||||
"proposals": true
|
||||
},
|
||||
"useBuiltIns": "usage",
|
||||
"exclude": [
|
||||
"transform-modules-commonjs",
|
||||
"proposal-dynamic-import"
|
||||
]
|
||||
"useBuiltIns": "usage"
|
||||
}
|
||||
]
|
||||
],
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user