Skip to content

Commit

Permalink
fix: snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Aug 8, 2024
1 parent 4e32ea0 commit a0357dd
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/compat/webpack/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
},
DefinePlugin {
"definitions": {
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
},
Expand Down Expand Up @@ -667,6 +670,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when produ
},
DefinePlugin {
"definitions": {
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""production"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": """",
},
},
Expand Down Expand Up @@ -971,6 +977,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
RsbuildCorePlugin {},
DefinePlugin {
"definitions": {
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""production"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": """",
},
},
Expand Down Expand Up @@ -1258,6 +1267,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
RsbuildCorePlugin {},
DefinePlugin {
"definitions": {
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""production"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": """",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ exports[`webpackConfig > should allow to append and prepend plugins 1`] = `
},
DefinePlugin {
"definitions": {
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""none"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
},
Expand Down
3 changes: 3 additions & 0 deletions packages/core/tests/__snapshots__/builder.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ exports[`should use rspack as default bundler > apply rspack correctly 1`] = `
DefinePlugin {
"_args": [
{
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
],
Expand Down
12 changes: 12 additions & 0 deletions packages/core/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
DefinePlugin {
"_args": [
{
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
],
Expand Down Expand Up @@ -817,6 +820,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when prod
DefinePlugin {
"_args": [
{
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""production"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": """",
},
],
Expand Down Expand Up @@ -1152,6 +1158,9 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
DefinePlugin {
"_args": [
{
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
],
Expand Down Expand Up @@ -1557,6 +1566,9 @@ exports[`tools.rspack > should match snapshot 1`] = `
DefinePlugin {
"_args": [
{
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
],
Expand Down
6 changes: 6 additions & 0 deletions packages/core/tests/__snapshots__/environments.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,9 @@ exports[`environment config > tools.rspack / bundlerChain can be used in environ
DefinePlugin {
"_args": [
{
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
],
Expand Down Expand Up @@ -2000,6 +2003,9 @@ exports[`environment config > tools.rspack / bundlerChain can be used in environ
DefinePlugin {
"_args": [
{
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
],
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-react/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ exports[`plugins/react > should work with swc-loader 1`] = `
DefinePlugin {
"_args": [
{
"import.meta.env.DEV": true,
"import.meta.env.MODE": ""development"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
],
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-vue/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ DefinePlugin {
"__VUE_OPTIONS_API__": true,
"__VUE_PROD_DEVTOOLS__": false,
"__VUE_PROD_HYDRATION_MISMATCH_DETAILS__": false,
"import.meta.env.DEV": false,
"import.meta.env.MODE": ""none"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": """",
},
],
Expand Down

0 comments on commit a0357dd

Please sign in to comment.