Skip to content

Commit a89041a

Browse files
committed
feat: update lock file && test snap
1 parent d68cf21 commit a89041a

File tree

2 files changed

+85
-7
lines changed

2 files changed

+85
-7
lines changed

packages/cli/uni-builder/tests/__snapshots__/default.test.ts.snap

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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",

packages/cli/uni-builder/tests/__snapshots__/environment.test.ts.snap

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ exports[`uni-builder environment compat > should generator environment config co
1515
"asyncWebAssembly": true,
1616
"inlineConst": false,
1717
"inlineEnum": false,
18-
"lazyBarrel": true,
1918
"rspackFuture": {
2019
"bundlerInfo": {
2120
"force": false,
@@ -503,6 +502,15 @@ exports[`uni-builder environment compat > should generator environment config co
503502
],
504503
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
505504
},
505+
{
506+
"oneOf": [
507+
{
508+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
509+
"type": "asset/source",
510+
},
511+
],
512+
"test": /\\\\\\.json\\$/i,
513+
},
506514
{
507515
"dependency": "url",
508516
"generator": {
@@ -1398,7 +1406,6 @@ exports[`uni-builder environment compat > should generator environment config co
13981406
"asyncWebAssembly": true,
13991407
"inlineConst": false,
14001408
"inlineEnum": false,
1401-
"lazyBarrel": true,
14021409
"rspackFuture": {
14031410
"bundlerInfo": {
14041411
"force": false,
@@ -1759,6 +1766,15 @@ exports[`uni-builder environment compat > should generator environment config co
17591766
],
17601767
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
17611768
},
1769+
{
1770+
"oneOf": [
1771+
{
1772+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
1773+
"type": "asset/source",
1774+
},
1775+
],
1776+
"test": /\\\\\\.json\\$/i,
1777+
},
17621778
{
17631779
"dependency": "url",
17641780
"generator": {
@@ -2329,7 +2345,6 @@ exports[`uni-builder environment compat > should generator environment config co
23292345
"asyncWebAssembly": true,
23302346
"inlineConst": false,
23312347
"inlineEnum": false,
2332-
"lazyBarrel": true,
23332348
"rspackFuture": {
23342349
"bundlerInfo": {
23352350
"force": false,
@@ -2682,6 +2697,15 @@ exports[`uni-builder environment compat > should generator environment config co
26822697
],
26832698
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
26842699
},
2700+
{
2701+
"oneOf": [
2702+
{
2703+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
2704+
"type": "asset/source",
2705+
},
2706+
],
2707+
"test": /\\\\\\.json\\$/i,
2708+
},
26852709
{
26862710
"dependency": "url",
26872711
"generator": {

0 commit comments

Comments
 (0)