feat: enable all remix future flags

This commit is contained in:
Aarnav Tale
2024-12-06 11:58:17 -05:00
parent 1af292a5b0
commit f623e7bc66
12 changed files with 391 additions and 419 deletions
+8 -3
View File
@@ -1,12 +1,9 @@
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'
import { execSync } from 'node:child_process'
installGlobals()
const prefix = process.env.__INTERNAL_PREFIX || '/admin'
if (prefix.endsWith('/')) {
throw new Error('Prefix must not end with a slash')
@@ -58,6 +55,14 @@ export default defineConfig(({ isSsrBuild }) => {
plugins: [
remix({
basename: `${prefix}/`,
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
v3_lazyRouteDiscovery: true,
v3_singleFetch: true,
v3_routeConfig: true
},
}),
tsconfigPaths(),
babel({