@@ -14,7 +14,6 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
1414 " asyncWebAssembly" : true ,
1515 " inlineConst" : false ,
1616 " inlineEnum" : false ,
17- " lazyBarrel" : true ,
1817 " rspackFuture" : {
1918 " bundlerInfo" : {
2019 " force" : false ,
@@ -502,6 +501,15 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
502501 ],
503502 " test" : / \\\\\\ . \\ (\\ ? :woff\\ | woff2\\ | eot\\ | ttf\\ | otf\\ | ttc\\ )\\ $ / i ,
504503 },
504+ {
505+ " oneOf" : [
506+ {
507+ " resourceQuery" : / \\ [\\ ?&\\ ] raw\\ (\\ ? :&\\ | =\\ | \\ $ \\ )/ ,
508+ " type" : " asset/source" ,
509+ },
510+ ],
511+ " test" : / \\\\\\ . json\\ $ / i ,
512+ },
505513 {
506514 " dependency" : " url" ,
507515 " generator" : {
@@ -1445,7 +1453,6 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
14451453 " asyncWebAssembly" : true ,
14461454 " inlineConst" : true ,
14471455 " inlineEnum" : true ,
1448- " lazyBarrel" : true ,
14491456 " rspackFuture" : {
14501457 " bundlerInfo" : {
14511458 " force" : false ,
@@ -1806,6 +1813,15 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
18061813 ],
18071814 " test" : / \\\\\\ . \\ (\\ ? :woff\\ | woff2\\ | eot\\ | ttf\\ | otf\\ | ttc\\ )\\ $ / i ,
18081815 },
1816+ {
1817+ " oneOf" : [
1818+ {
1819+ " resourceQuery" : / \\ [\\ ?&\\ ] raw\\ (\\ ? :&\\ | =\\ | \\ $ \\ )/ ,
1820+ " type" : " asset/source" ,
1821+ },
1822+ ],
1823+ " test" : / \\\\\\ . json\\ $ / i ,
1824+ },
18091825 {
18101826 " dependency" : " url" ,
18111827 " generator" : {
@@ -2302,6 +2318,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
23022318 " output" : {
23032319 " assetModuleFilename" : " static/assets/[name].[contenthash:8][ext]" ,
23042320 " chunkFilename" : " [name].js" ,
2321+ " devtoolModuleFilenameTemplate" : [Function ],
23052322 " filename" : " [name].js" ,
23062323 " hashFunction" : " xxhash64" ,
23072324 " library" : {
@@ -2415,7 +2432,6 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
24152432 " asyncWebAssembly" : true ,
24162433 " inlineConst" : true ,
24172434 " inlineEnum" : true ,
2418- " lazyBarrel" : true ,
24192435 " rspackFuture" : {
24202436 " bundlerInfo" : {
24212437 " force" : false ,
@@ -2902,6 +2918,15 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
29022918 ],
29032919 " test" : / \\\\\\ . \\ (\\ ? :woff\\ | woff2\\ | eot\\ | ttf\\ | otf\\ | ttc\\ )\\ $ / i ,
29042920 },
2921+ {
2922+ " oneOf" : [
2923+ {
2924+ " resourceQuery" : / \\ [\\ ?&\\ ] raw\\ (\\ ? :&\\ | =\\ | \\ $ \\ )/ ,
2925+ " type" : " asset/source" ,
2926+ },
2927+ ],
2928+ " test" : / \\\\\\ . json\\ $ / i ,
2929+ },
29052930 {
29062931 " dependency" : " url" ,
29072932 " generator" : {
@@ -3673,6 +3698,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
36733698 " output" : {
36743699 " assetModuleFilename" : " static/assets/[name].[contenthash:8][ext]" ,
36753700 " chunkFilename" : " static/js/async/[name].[contenthash:8].js" ,
3701+ " devtoolModuleFilenameTemplate" : [Function ],
36763702 " filename" : " static/js/[name].[contenthash:8].js" ,
36773703 " hashFunction" : " xxhash64" ,
36783704 " path" : " dist" ,
@@ -3830,7 +3856,6 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
38303856 " asyncWebAssembly" : true ,
38313857 " inlineConst" : true ,
38323858 " inlineEnum" : true ,
3833- " lazyBarrel" : true ,
38343859 " rspackFuture" : {
38353860 " bundlerInfo" : {
38363861 " force" : false ,
@@ -4183,6 +4208,15 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
41834208 ],
41844209 " test" : / \\\\\\ . \\ (\\ ? :woff\\ | woff2\\ | eot\\ | ttf\\ | otf\\ | ttc\\ )\\ $ / i ,
41854210 },
4211+ {
4212+ " oneOf" : [
4213+ {
4214+ " resourceQuery" : / \\ [\\ ?&\\ ] raw\\ (\\ ? :&\\ | =\\ | \\ $ \\ )/ ,
4215+ " type" : " asset/source" ,
4216+ },
4217+ ],
4218+ " test" : / \\\\\\ . json\\ $ / i ,
4219+ },
41864220 {
41874221 " dependency" : " url" ,
41884222 " generator" : {
@@ -4667,6 +4701,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
46674701 " output" : {
46684702 " assetModuleFilename" : " static/assets/[name].[contenthash:8][ext]" ,
46694703 " chunkFilename" : " [name].js" ,
4704+ " devtoolModuleFilenameTemplate" : [Function ],
46704705 " filename" : " [name].js" ,
46714706 " hashFunction" : " xxhash64" ,
46724707 " libraryTarget" : " commonjs2" ,
@@ -5350,6 +5385,15 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
53505385 ],
53515386 " test" : / \\\\\\ . \\ (\\ ? :woff\\ | woff2\\ | eot\\ | ttf\\ | otf\\ | ttc\\ )\\ $ / i ,
53525387 },
5388+ {
5389+ " oneOf" : [
5390+ {
5391+ " resourceQuery" : / \\ [\\ ?&\\ ] raw\\ (\\ ? :&\\ | =\\ | \\ $ \\ )/ ,
5392+ " type" : " asset/source" ,
5393+ },
5394+ ],
5395+ " test" : / \\\\\\ . json\\ $ / i ,
5396+ },
53535397 {
53545398 " dependency" : " url" ,
53555399 " generator" : {
@@ -6939,6 +6983,15 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
69396983 ],
69406984 " test" : / \\\\\\ . \\ (\\ ? :woff\\ | woff2\\ | eot\\ | ttf\\ | otf\\ | ttc\\ )\\ $ / i ,
69416985 },
6986+ {
6987+ " oneOf" : [
6988+ {
6989+ " resourceQuery" : / \\ [\\ ?&\\ ] raw\\ (\\ ? :&\\ | =\\ | \\ $ \\ )/ ,
6990+ " type" : " asset/source" ,
6991+ },
6992+ ],
6993+ " test" : / \\\\\\ . json\\ $ / i ,
6994+ },
69426995 {
69436996 " dependency" : " url" ,
69446997 " generator" : {
@@ -7805,6 +7858,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
78057858 " output" : {
78067859 " assetModuleFilename" : " static/assets/[name].[contenthash:8][ext]" ,
78077860 " chunkFilename" : " static/js/async/[name].[contenthash:8].js" ,
7861+ " devtoolModuleFilenameTemplate" : [Function ],
78087862 " filename" : " static/js/[name].[contenthash:8].js" ,
78097863 " hashFunction" : " xxhash64" ,
78107864 " path" : " dist" ,
0 commit comments