File tree 2 files changed +14
-0
lines changed
packages/react-router-dev/vite 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @react-router/dev " : patch
3
+ ---
4
+
5
+ When executing ` react-router.config.ts ` and ` routes.ts ` with ` vite-node ` , ensure that PostCSS config files are ignored
Original file line number Diff line number Diff line change @@ -36,6 +36,15 @@ export async function createContext({
36
36
optimizeDeps : {
37
37
noDiscovery : true ,
38
38
} ,
39
+ css : {
40
+ // This empty PostCSS config object prevents the PostCSS config file from
41
+ // being loaded. We don't need it in a React Router config context, and
42
+ // there's also an issue in Vite 5 when using a .ts PostCSS config file in
43
+ // an ESM project: https://github.com/vitejs/vite/issues/15869. Consumers
44
+ // can work around this in their own Vite config file, but they can't
45
+ // configure this internal usage of vite-node.
46
+ postcss : { } ,
47
+ } ,
39
48
configFile : false ,
40
49
envFile : false ,
41
50
plugins : [ ] ,
You can’t perform that action at this time.
0 commit comments