style: cleanup vite.config.ts
This commit is contained in:
parent
72cc9d8974
commit
dbd9d39da9
@ -6,8 +6,6 @@ import tsconfigPaths from 'vite-tsconfig-paths'
|
|||||||
|
|
||||||
installGlobals()
|
installGlobals()
|
||||||
|
|
||||||
const ReactCompilerConfig = {}
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: '/admin/',
|
base: '/admin/',
|
||||||
plugins: [
|
plugins: [
|
||||||
@ -18,9 +16,9 @@ export default defineConfig({
|
|||||||
babel({
|
babel({
|
||||||
filter: /\.[jt]sx?$/,
|
filter: /\.[jt]sx?$/,
|
||||||
babelConfig: {
|
babelConfig: {
|
||||||
presets: ['@babel/preset-typescript'], // if you use TypeScript
|
presets: ['@babel/preset-typescript'],
|
||||||
plugins: [
|
plugins: [
|
||||||
['babel-plugin-react-compiler', ReactCompilerConfig],
|
['babel-plugin-react-compiler', {}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user