style: cleanup vite.config.ts

This commit is contained in:
Aarnav Tale 2024-05-30 10:20:53 -04:00
parent 72cc9d8974
commit dbd9d39da9
No known key found for this signature in database

View File

@ -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', {}],
], ],
}, },
}), }),