feat: react 19 to take advantage of compiler
This commit is contained in:
parent
2f02ccc362
commit
d57ee2677c
3 changed files with 958 additions and 816 deletions
|
|
@ -1,13 +1,28 @@
|
|||
import { vitePlugin as remix } from '@remix-run/dev'
|
||||
import { installGlobals } from '@remix-run/node'
|
||||
import { defineConfig } from 'vite'
|
||||
import babel from 'vite-plugin-babel'
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
|
||||
installGlobals()
|
||||
|
||||
const ReactCompilerConfig = {}
|
||||
|
||||
export default defineConfig({
|
||||
base: '/admin/',
|
||||
plugins: [remix({
|
||||
basename: '/admin/'
|
||||
}), tsconfigPaths()]
|
||||
plugins: [
|
||||
remix({
|
||||
basename: '/admin/',
|
||||
}),
|
||||
tsconfigPaths(),
|
||||
babel({
|
||||
filter: /\.[jt]sx?$/,
|
||||
babelConfig: {
|
||||
presets: ['@babel/preset-typescript'], // if you use TypeScript
|
||||
plugins: [
|
||||
['babel-plugin-react-compiler', ReactCompilerConfig],
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue