File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @vanilla-extract/vite-plugin ' : patch
3+ ---
4+
5+ Don't pass Remix Vite plugin to the vite-node compiler
6+
7+ Remix throws an error if it's loaded without a config file, which is what we do when we initialise the vite-node compiler.
Original file line number Diff line number Diff line change @@ -125,11 +125,13 @@ export function vanillaExtractPlugin({
125125 plugin !== null &&
126126 'name' in plugin &&
127127 // Prevent an infinite loop where the compiler creates a new instance of the plugin,
128- // which creates a new compiler, which creates a new instance of the plugin, etc.
128+ // which creates a new compiler, which creates a new instance of the plugin, etc.
129129 plugin . name !== 'vanilla-extract' &&
130130 // Skip Vitest plugins
131131 plugin . name !== 'vitest' &&
132- ! plugin . name . startsWith ( 'vitest:' ) ,
132+ ! plugin . name . startsWith ( 'vitest:' ) &&
133+ // Skip Remix because it throws an error if it's not loaded with a config file
134+ plugin . name !== 'remix' ,
133135 ) ,
134136 } ) ;
135137 }
You can’t perform that action at this time.
0 commit comments