@@ -59,8 +59,8 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
5959 },
6060 " resourceQuery" : {
6161 " not" : [
62- / \\ ^ \\\\\\ ? raw \\ $ / ,
63- / \\ ^ \\\\\\ ? inline \\ $ / ,
62+ / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
63+ / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
6464 ],
6565 },
6666 " sideEffects" : true ,
@@ -104,7 +104,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
104104 " resolve" : {
105105 " preferRelative" : true ,
106106 },
107- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
107+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
108108 " sideEffects" : true ,
109109 " test" : / \\\\\\ . css\\ $ / ,
110110 " type" : " javascript/auto" ,
@@ -121,7 +121,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
121121 ],
122122 },
123123 {
124- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
124+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
125125 " test" : / \\\\\\ . css\\ $ / ,
126126 " type" : " asset/source" ,
127127 },
@@ -136,7 +136,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
136136 / \\\\\\ . \\ (\\ ? :ts\\ | tsx\\ | jsx\\ | mts\\ | cts\\ )\\ $ / ,
137137 ],
138138 " resourceQuery" : {
139- " not" : / \\ ^ \\\\\\ ? raw \\ $ / ,
139+ " not" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
140140 },
141141 " test" : / \\\\\\ . \\ (\\ ? :js\\ | jsx\\ | mjs\\ | cjs\\ | ts\\ | tsx\\ | mts\\ | cts\\ )\\ $ / ,
142142 " type" : " javascript/auto" ,
@@ -180,7 +180,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
180180 ],
181181 },
182182 {
183- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
183+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
184184 " test" : / \\\\\\ . \\ (\\ ? :js\\ | jsx\\ | mjs\\ | cjs\\ | ts\\ | tsx\\ | mts\\ | cts\\ )\\ $ / ,
185185 " type" : " asset/source" ,
186186 },
@@ -243,11 +243,11 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
243243 " type" : " asset/resource" ,
244244 },
245245 {
246- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
246+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
247247 " type" : " asset/inline" ,
248248 },
249249 {
250- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
250+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
251251 " type" : " asset/source" ,
252252 },
253253 {
@@ -274,11 +274,11 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
274274 " type" : " asset/resource" ,
275275 },
276276 {
277- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
277+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
278278 " type" : " asset/inline" ,
279279 },
280280 {
281- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
281+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
282282 " type" : " asset/source" ,
283283 },
284284 {
@@ -305,11 +305,11 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
305305 " type" : " asset/resource" ,
306306 },
307307 {
308- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
308+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
309309 " type" : " asset/inline" ,
310310 },
311311 {
312- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
312+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
313313 " type" : " asset/source" ,
314314 },
315315 {
@@ -336,11 +336,11 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
336336 " type" : " asset/resource" ,
337337 },
338338 {
339- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
339+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
340340 " type" : " asset/inline" ,
341341 },
342342 {
343- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
343+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
344344 " type" : " asset/source" ,
345345 },
346346 {
@@ -578,8 +578,8 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
578578 },
579579 " resourceQuery" : {
580580 " not" : [
581- / \\ ^ \\\\\\ ? raw \\ $ / ,
582- / \\ ^ \\\\\\ ? inline \\ $ / ,
581+ / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
582+ / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
583583 ],
584584 },
585585 " sideEffects" : true ,
@@ -623,7 +623,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
623623 " resolve" : {
624624 " preferRelative" : true ,
625625 },
626- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
626+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
627627 " sideEffects" : true ,
628628 " test" : / \\\\\\ . css\\ $ / ,
629629 " type" : " javascript/auto" ,
@@ -640,7 +640,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
640640 ],
641641 },
642642 {
643- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
643+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
644644 " test" : / \\\\\\ . css\\ $ / ,
645645 " type" : " asset/source" ,
646646 },
@@ -655,7 +655,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
655655 / \\\\\\ . \\ (\\ ? :ts\\ | tsx\\ | jsx\\ | mts\\ | cts\\ )\\ $ / ,
656656 ],
657657 " resourceQuery" : {
658- " not" : / \\ ^ \\\\\\ ? raw \\ $ / ,
658+ " not" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
659659 },
660660 " test" : / \\\\\\ . \\ (\\ ? :js\\ | jsx\\ | mjs\\ | cjs\\ | ts\\ | tsx\\ | mts\\ | cts\\ )\\ $ / ,
661661 " type" : " javascript/auto" ,
@@ -699,7 +699,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
699699 ],
700700 },
701701 {
702- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
702+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
703703 " test" : / \\\\\\ . \\ (\\ ? :js\\ | jsx\\ | mjs\\ | cjs\\ | ts\\ | tsx\\ | mts\\ | cts\\ )\\ $ / ,
704704 " type" : " asset/source" ,
705705 },
@@ -762,11 +762,11 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
762762 " type" : " asset/resource" ,
763763 },
764764 {
765- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
765+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
766766 " type" : " asset/inline" ,
767767 },
768768 {
769- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
769+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
770770 " type" : " asset/source" ,
771771 },
772772 {
@@ -793,11 +793,11 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
793793 " type" : " asset/resource" ,
794794 },
795795 {
796- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
796+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
797797 " type" : " asset/inline" ,
798798 },
799799 {
800- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
800+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
801801 " type" : " asset/source" ,
802802 },
803803 {
@@ -824,11 +824,11 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
824824 " type" : " asset/resource" ,
825825 },
826826 {
827- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
827+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
828828 " type" : " asset/inline" ,
829829 },
830830 {
831- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
831+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
832832 " type" : " asset/source" ,
833833 },
834834 {
@@ -855,11 +855,11 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
855855 " type" : " asset/resource" ,
856856 },
857857 {
858- " resourceQuery" : / \\ ^ \\\\\\ ? inline \\ $ / ,
858+ " resourceQuery" : / \\ [ \\ ?& \\ ] inline \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
859859 " type" : " asset/inline" ,
860860 },
861861 {
862- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
862+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
863863 " type" : " asset/source" ,
864864 },
865865 {
@@ -1048,7 +1048,7 @@ exports[`prepareRsbuild > should generate swc config correctly with user customi
10481048 / node_modules\\ [\\\\\\\\ /\\ ] query-string\\ [\\\\\\\\ /\\ ] / ,
10491049 ],
10501050 " resourceQuery" : {
1051- " not" : / \\ ^ \\\\\\ ? raw \\ $ / ,
1051+ " not" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
10521052 },
10531053 " test" : / \\\\\\ . \\ (\\ ? :js\\ | jsx\\ | mjs\\ | cjs\\ | ts\\ | tsx\\ | mts\\ | cts\\ )\\ $ / ,
10541054 " type" : " javascript/auto" ,
@@ -1093,7 +1093,7 @@ exports[`prepareRsbuild > should generate swc config correctly with user customi
10931093 ],
10941094 } ,
10951095 {
1096- " resourceQuery" : / \\ ^ \\\\\\ ? raw \\ $ / ,
1096+ " resourceQuery" : / \\ [ \\ ?& \\ ] raw \\ ( \\ ? :& \\ | = \\ | \\ $ \\ ) / ,
10971097 " test" : / \\\\\\ . \\ (\\ ? :js\\ | jsx\\ | mjs\\ | cjs\\ | ts\\ | tsx\\ | mts\\ | cts\\ )\\ $ / ,
10981098 " type" : " asset/source" ,
10991099 } ,
0 commit comments