Skip to content

Commit

Permalink
test: try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Jan 24, 2025
1 parent ee75b03 commit 0d17d60
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 355 deletions.
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
},
"overrides": {
"@rspack/core": "npm:@rspack-canary/[email protected]",
"@rspack/cli": "npm:@rspack-canary/[email protected]"
},
"peerDependencyRules": {
"allowAny": [
"@rspack/*"
]
}
},
"packageManager": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tests/__snapshots__/builder.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports[`should use Rspack as the default bundler > apply Rspack correctly 1`] =
"type": "javascript/auto",
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/tests/__snapshots__/css.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`plugin-css > should use custom cssModules rule when using output.cssMod
"type": "javascript/auto",
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -169,7 +169,7 @@ exports[`should ensure isolation of PostCSS config objects between different bui
"type": "javascript/auto",
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -230,7 +230,7 @@ exports[`should ensure isolation of PostCSS config objects between different bui
"type": "javascript/auto",
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
"type": "javascript/auto",
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -464,7 +464,7 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when prod
"type": "javascript/auto",
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -1285,7 +1285,7 @@ exports[`tools.rspack > should match snapshot 1`] = `
"type": "javascript/auto",
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e
"type": "javascript/auto",
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/plugin-less/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`plugin-less > should add less-loader 1`] = `
"test": /\\\\\\.less\\$/,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -132,7 +132,7 @@ exports[`plugin-less > should add less-loader with excludes 1`] = `
"test": /\\\\\\.less\\$/,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -190,7 +190,7 @@ exports[`plugin-less > should add less-loader with tools.less 1`] = `
"test": /\\\\\\.less\\$/,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -248,7 +248,7 @@ exports[`plugin-less > should allow to use Less plugins 1`] = `
"test": /\\\\\\.less\\$/,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-sass/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`plugin-sass > should add sass-loader 1`] = `
"test": /\\\\\\.s\\(\\?:a\\|c\\)ss\\$/,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -148,7 +148,7 @@ exports[`plugin-sass > should add sass-loader with excludes 1`] = `
"test": /\\\\\\.s\\(\\?:a\\|c\\)ss\\$/,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -214,7 +214,7 @@ exports[`plugin-sass > should allow to use legacy API and mute deprecation warni
"test": /\\\\\\.s\\(\\?:a\\|c\\)ss\\$/,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-stylus/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`plugin-stylus > should add stylus loader config correctly 1`] = `
"test": /\\\\\\.styl\\(us\\)\\?\\$/,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -64,7 +64,7 @@ exports[`plugin-stylus > should allow to configure stylus options 1`] = `
"test": /\\\\\\.styl\\(us\\)\\?\\$/,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack-canary/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down
Loading

0 comments on commit 0d17d60

Please sign in to comment.