File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' vite-plugin-solid ' : patch
3+ ---
4+
5+ Support query string in tsx/jsx files
Original file line number Diff line number Diff line change @@ -302,6 +302,8 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
302302 typeof extension === 'string' ? extension : extension [ 0 ] ,
303303 ) ;
304304
305+ id = id . replace ( / \? .+ $ / , '' ) ;
306+
305307 if ( ! filter ( id ) || ! ( / \. [ m c ] ? [ t j ] s x $ / i. test ( id ) || allExtensions . includes ( currentFileExtension ) ) ) {
306308 return null ;
307309 }
@@ -320,8 +322,6 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
320322 solidOptions = { generate : 'dom' , hydratable : false } ;
321323 }
322324
323- id = id . replace ( / \? .+ $ / , '' ) ;
324-
325325 // We need to know if the current file extension has a typescript options tied to it
326326 const shouldBeProcessedWithTypescript = / \. [ m c ] ? t s x $ / i. test ( id ) || extensionsToWatch . some ( ( extension ) => {
327327 if ( typeof extension === 'string' ) {
You can’t perform that action at this time.
0 commit comments