headplane/vite.config.ts

29 lines
615 B
TypeScript
Raw Normal View History

2024-03-25 17:50:58 -04:00
import { vitePlugin as remix } from '@remix-run/dev'
import { installGlobals } from '@remix-run/node'
import { defineConfig } from 'vite'
import babel from 'vite-plugin-babel'
2024-03-25 17:50:58 -04:00
import tsconfigPaths from 'vite-tsconfig-paths'
2024-03-25 17:50:58 -04:00
installGlobals()
const ReactCompilerConfig = {}
export default defineConfig({
2024-03-26 10:07:04 -04:00
base: '/admin/',
plugins: [
remix({
basename: '/admin/',
}),
tsconfigPaths(),
babel({
filter: /\.[jt]sx?$/,
babelConfig: {
presets: ['@babel/preset-typescript'], // if you use TypeScript
plugins: [
['babel-plugin-react-compiler', ReactCompilerConfig],
],
},
}),
],
2024-03-25 17:50:58 -04:00
})