Skip to content

Commit

Permalink
chore(deps): update the path-serializer (#3739)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter authored Oct 16, 2024
1 parent d842aa9 commit d635625
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 51 deletions.
24 changes: 12 additions & 12 deletions packages/compat/webpack/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
},
DefinePlugin {
"definitions": {
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
},
Expand Down Expand Up @@ -669,12 +669,12 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when produ
},
DefinePlugin {
"definitions": {
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""production"",
"import.meta.env.MODE": "\\"production\\"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
},
Expand Down Expand Up @@ -983,12 +983,12 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
RsbuildCorePlugin {},
DefinePlugin {
"definitions": {
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""production"",
"import.meta.env.MODE": "\\"production\\"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
},
Expand Down Expand Up @@ -1280,12 +1280,12 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
RsbuildCorePlugin {},
DefinePlugin {
"definitions": {
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""production"",
"import.meta.env.MODE": "\\"production\\"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ exports[`webpackConfig > should allow to append and prepend plugins 1`] = `
},
DefinePlugin {
"definitions": {
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""none"",
"import.meta.env.MODE": "\\"none\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
},
Expand Down
6 changes: 3 additions & 3 deletions packages/core/tests/__snapshots__/builder.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,12 @@ exports[`should use rspack as default bundler > apply rspack correctly 1`] = `
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
Expand Down
4 changes: 2 additions & 2 deletions packages/core/tests/__snapshots__/config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`stringifyConfig > should stringify Rsbuild config correctly 1`] = `
"{
tools: {
bundlerChain(chain) {
chain.devtool("eval");
chain.devtool(\\"eval\\");
}
}
}"
Expand Down Expand Up @@ -32,7 +32,7 @@ exports[`stringifyConfig > should stringify Rspack config with verbose option co
mode: 'development',
output: {
filename() {
const a = "[name.js]";
const a = \\"[name.js]\\";
return a;
}
},
Expand Down
24 changes: 12 additions & 12 deletions packages/core/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,12 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
Expand Down Expand Up @@ -785,12 +785,12 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when prod
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""production"",
"import.meta.env.MODE": "\\"production\\"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
Expand Down Expand Up @@ -1125,12 +1125,12 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
Expand Down Expand Up @@ -1530,12 +1530,12 @@ exports[`tools.rspack > should match snapshot 1`] = `
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
Expand Down
8 changes: 4 additions & 4 deletions packages/core/tests/__snapshots__/define.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ exports[`plugin-define > should register define plugin correctly 1`] = `
DefinePlugin {
"_args": [
{
"NAME": ""Jack"",
"import.meta.env.ASSET_PREFIX": """",
"NAME": "\\"Jack\\"",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""none"",
"import.meta.env.MODE": "\\"none\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
Expand Down
12 changes: 6 additions & 6 deletions packages/core/tests/__snapshots__/environments.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1729,12 +1729,12 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
Expand Down Expand Up @@ -2050,12 +2050,12 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-vue/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ DefinePlugin {
"__VUE_OPTIONS_API__": true,
"__VUE_PROD_DEVTOOLS__": false,
"__VUE_PROD_HYDRATION_MISMATCH_DETAILS__": false,
"import.meta.env.ASSET_PREFIX": """",
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""none"",
"import.meta.env.MODE": "\\"none\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/test-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"@rsbuild/core": "workspace:*",
"@types/node": "18.x",
"path-serializer": "0.0.6",
"path-serializer": "0.1.3",
"typescript": "^5.6.3",
"upath": "2.0.1"
},
Expand Down

0 comments on commit d635625

Please sign in to comment.