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 {
302
302
typeof extension === 'string' ? extension : extension [ 0 ] ,
303
303
) ;
304
304
305
+ id = id . replace ( / \? .+ $ / , '' ) ;
306
+
305
307
if ( ! filter ( id ) || ! ( / \. [ m c ] ? [ t j ] s x $ / i. test ( id ) || allExtensions . includes ( currentFileExtension ) ) ) {
306
308
return null ;
307
309
}
@@ -320,8 +322,6 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
320
322
solidOptions = { generate : 'dom' , hydratable : false } ;
321
323
}
322
324
323
- id = id . replace ( / \? .+ $ / , '' ) ;
324
-
325
325
// We need to know if the current file extension has a typescript options tied to it
326
326
const shouldBeProcessedWithTypescript = / \. [ m c ] ? t s x $ / i. test ( id ) || extensionsToWatch . some ( ( extension ) => {
327
327
if ( typeof extension === 'string' ) {
You can’t perform that action at this time.
0 commit comments