Skip to content

Commit 7f21ecd

Browse files
committed
feat: update lock file && test snap
1 parent 5b03a04 commit 7f21ecd

File tree

3 files changed

+68
-7
lines changed

3 files changed

+68
-7
lines changed

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

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ exports[`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,
@@ -454,6 +453,15 @@ exports[`builder rspack > should generator rspack config correctly 1`] = `
454453
],
455454
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
456455
},
456+
{
457+
"oneOf": [
458+
{
459+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
460+
"type": "asset/source",
461+
},
462+
],
463+
"test": /\\\\\\.json\\$/i,
464+
},
457465
{
458466
"dependency": "url",
459467
"generator": {
@@ -1310,7 +1318,6 @@ exports[`builder rspack > should generator rspack config correctly when node 1`]
13101318
"asyncWebAssembly": true,
13111319
"inlineConst": true,
13121320
"inlineEnum": true,
1313-
"lazyBarrel": true,
13141321
"rspackFuture": {
13151322
"bundlerInfo": {
13161323
"force": false,
@@ -1623,6 +1630,15 @@ exports[`builder rspack > should generator rspack config correctly when node 1`]
16231630
],
16241631
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
16251632
},
1633+
{
1634+
"oneOf": [
1635+
{
1636+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
1637+
"type": "asset/source",
1638+
},
1639+
],
1640+
"test": /\\\\\\.json\\$/i,
1641+
},
16261642
{
16271643
"dependency": "url",
16281644
"generator": {
@@ -2050,6 +2066,7 @@ exports[`builder rspack > should generator rspack config correctly when node 1`]
20502066
"output": {
20512067
"assetModuleFilename": "static/assets/[name].[contenthash:8][ext]",
20522068
"chunkFilename": "[name].js",
2069+
"devtoolModuleFilenameTemplate": [Function],
20532070
"filename": "[name].js",
20542071
"hashFunction": "xxhash64",
20552072
"library": {
@@ -2163,7 +2180,6 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`]
21632180
"asyncWebAssembly": true,
21642181
"inlineConst": true,
21652182
"inlineEnum": true,
2166-
"lazyBarrel": true,
21672183
"rspackFuture": {
21682184
"bundlerInfo": {
21692185
"force": false,
@@ -2602,6 +2618,15 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`]
26022618
],
26032619
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
26042620
},
2621+
{
2622+
"oneOf": [
2623+
{
2624+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
2625+
"type": "asset/source",
2626+
},
2627+
],
2628+
"test": /\\\\\\.json\\$/i,
2629+
},
26052630
{
26062631
"dependency": "url",
26072632
"generator": {
@@ -3292,6 +3317,7 @@ exports[`builder rspack > should generator rspack config correctly when prod 1`]
32923317
"output": {
32933318
"assetModuleFilename": "static/assets/[name].[contenthash:8][ext]",
32943319
"chunkFilename": "static/js/async/[name].[contenthash:8].js",
3320+
"devtoolModuleFilenameTemplate": [Function],
32953321
"filename": "static/js/[name].[contenthash:8].js",
32963322
"hashFunction": "xxhash64",
32973323
"path": "dist",
@@ -3449,7 +3475,6 @@ exports[`builder rspack > should generator rspack config correctly when service-
34493475
"asyncWebAssembly": true,
34503476
"inlineConst": true,
34513477
"inlineEnum": true,
3452-
"lazyBarrel": true,
34533478
"rspackFuture": {
34543479
"bundlerInfo": {
34553480
"force": false,
@@ -3754,6 +3779,15 @@ exports[`builder rspack > should generator rspack config correctly when service-
37543779
],
37553780
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
37563781
},
3782+
{
3783+
"oneOf": [
3784+
{
3785+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
3786+
"type": "asset/source",
3787+
},
3788+
],
3789+
"test": /\\\\\\.json\\$/i,
3790+
},
37573791
{
37583792
"dependency": "url",
37593793
"generator": {
@@ -4169,6 +4203,7 @@ exports[`builder rspack > should generator rspack config correctly when service-
41694203
"output": {
41704204
"assetModuleFilename": "static/assets/[name].[contenthash:8][ext]",
41714205
"chunkFilename": "[name].js",
4206+
"devtoolModuleFilenameTemplate": [Function],
41724207
"filename": "[name].js",
41734208
"hashFunction": "xxhash64",
41744209
"libraryTarget": "commonjs2",

packages/cli/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[`builder environment compat > should generator environment config correc
1515
"asyncWebAssembly": true,
1616
"inlineConst": false,
1717
"inlineEnum": false,
18-
"lazyBarrel": true,
1918
"rspackFuture": {
2019
"bundlerInfo": {
2120
"force": false,
@@ -455,6 +454,15 @@ exports[`builder environment compat > should generator environment config correc
455454
],
456455
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
457456
},
457+
{
458+
"oneOf": [
459+
{
460+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
461+
"type": "asset/source",
462+
},
463+
],
464+
"test": /\\\\\\.json\\$/i,
465+
},
458466
{
459467
"dependency": "url",
460468
"generator": {
@@ -1269,7 +1277,6 @@ exports[`builder environment compat > should generator environment config correc
12691277
"asyncWebAssembly": true,
12701278
"inlineConst": false,
12711279
"inlineEnum": false,
1272-
"lazyBarrel": true,
12731280
"rspackFuture": {
12741281
"bundlerInfo": {
12751282
"force": false,
@@ -1582,6 +1589,15 @@ exports[`builder environment compat > should generator environment config correc
15821589
],
15831590
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
15841591
},
1592+
{
1593+
"oneOf": [
1594+
{
1595+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
1596+
"type": "asset/source",
1597+
},
1598+
],
1599+
"test": /\\\\\\.json\\$/i,
1600+
},
15851601
{
15861602
"dependency": "url",
15871603
"generator": {
@@ -2083,7 +2099,6 @@ exports[`builder environment compat > should generator environment config correc
20832099
"asyncWebAssembly": true,
20842100
"inlineConst": false,
20852101
"inlineEnum": false,
2086-
"lazyBarrel": true,
20872102
"rspackFuture": {
20882103
"bundlerInfo": {
20892104
"force": false,
@@ -2388,6 +2403,15 @@ exports[`builder environment compat > should generator environment config correc
23882403
],
23892404
"test": /\\\\\\.\\(\\?:woff\\|woff2\\|eot\\|ttf\\|otf\\|ttc\\)\\$/i,
23902405
},
2406+
{
2407+
"oneOf": [
2408+
{
2409+
"resourceQuery": /\\[\\?&\\]raw\\(\\?:&\\|=\\|\\$\\)/,
2410+
"type": "asset/source",
2411+
},
2412+
],
2413+
"test": /\\\\\\.json\\$/i,
2414+
},
23912415
{
23922416
"dependency": "url",
23932417
"generator": {

pnpm-lock.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)