Tested adding serverModuleFormat cjs feature/random-nik-things
This commit is contained in:
parent
f6c08d8074
commit
b55daba49c
@ -2,7 +2,7 @@ import { vitePlugin as remix } from '@remix-run/dev';
|
|||||||
import { installGlobals } from '@remix-run/node';
|
import { installGlobals } from '@remix-run/node';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||||
import { flatRoutes } from 'remix-flat-routes'
|
import { flatRoutes } from 'remix-flat-routes';
|
||||||
|
|
||||||
installGlobals();
|
installGlobals();
|
||||||
|
|
||||||
@ -17,11 +17,12 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
remix({
|
remix({
|
||||||
|
routes: async (defineRoutes) => {
|
||||||
routes: async defineRoutes => {
|
return flatRoutes('routes', defineRoutes);
|
||||||
return flatRoutes('routes', defineRoutes)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
serverModuleFormat: 'cjs',
|
||||||
|
|
||||||
// app path
|
// app path
|
||||||
appDirectory: 'app'
|
appDirectory: 'app'
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user