Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/tests/__snapshots__/builder.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ exports[`default bundler > should use Rspack by default 1`] = `
"sideEffects": true,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -458,7 +458,7 @@ exports[`default bundler > should use Rspack by default 1`] = `
],
"resolve": {
"alias": {
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"extensions": [
".ts",
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 @@ -48,7 +48,7 @@ exports[`plugin-css > should use custom cssModules rule when using output.cssMod
"sideEffects": true,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -301,7 +301,7 @@ exports[`should ensure isolation of PostCSS config objects between different bui
"sideEffects": true,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -415,7 +415,7 @@ exports[`should ensure isolation of PostCSS config objects between different bui
"sideEffects": true,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down
14 changes: 7 additions & 7 deletions packages/core/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ exports[`should apply default plugins correctly 1`] = `
"sideEffects": true,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -443,7 +443,7 @@ exports[`should apply default plugins correctly 1`] = `
],
"resolve": {
"alias": {
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"extensions": [
".ts",
Expand Down Expand Up @@ -536,7 +536,7 @@ exports[`should apply default plugins correctly in production 1`] = `
"sideEffects": true,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -908,7 +908,7 @@ exports[`should apply default plugins correctly in production 1`] = `
],
"resolve": {
"alias": {
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"extensions": [
".ts",
Expand Down Expand Up @@ -1329,7 +1329,7 @@ exports[`should apply default plugins correctly when target is node 1`] = `
],
"resolve": {
"alias": {
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"extensions": [
".ts",
Expand Down Expand Up @@ -1426,7 +1426,7 @@ exports[`tools.rspack > should match snapshot 1`] = `
"sideEffects": true,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -1777,7 +1777,7 @@ exports[`tools.rspack > should match snapshot 1`] = `
],
"resolve": {
"alias": {
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"extensions": [
".ts",
Expand Down
28 changes: 14 additions & 14 deletions packages/core/tests/__snapshots__/environments.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ exports[`environment config > should allow configuring tools.rspack and bundlerC
"sideEffects": true,
"use": [
{
"loader": "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
"loader": "<PNPM_INNER>/@rspack/core/dist/cssExtractLoader.js",
},
{
"loader": "<ROOT>/packages/core/compiled/css-loader/index.js",
Expand Down Expand Up @@ -416,7 +416,7 @@ exports[`environment config > should allow configuring tools.rspack and bundlerC
],
"resolve": {
"alias": {
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"extensions": [
".ts",
Expand Down Expand Up @@ -837,7 +837,7 @@ exports[`environment config > should allow configuring tools.rspack and bundlerC
],
"resolve": {
"alias": {
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"extensions": [
".ts",
Expand Down Expand Up @@ -950,7 +950,7 @@ exports[`environment config > should normalize environment config correctly 1`]
"resolve": {
"alias": {
"@common": "./src/common",
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"aliasStrategy": "prefer-tsconfig",
"extensions": [
Expand Down Expand Up @@ -1107,7 +1107,7 @@ exports[`environment config > should normalize environment config correctly 2`]
"resolve": {
"alias": {
"@common": "./src/common",
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"aliasStrategy": "prefer-tsconfig",
"extensions": [
Expand Down Expand Up @@ -1268,7 +1268,7 @@ exports[`environment config > should print environment config when inspecting co
"resolve": {
"alias": {
"@common": "./src/common",
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"aliasStrategy": "prefer-tsconfig",
"extensions": [
Expand Down Expand Up @@ -1425,7 +1425,7 @@ exports[`environment config > should print environment config when inspecting co
"resolve": {
"alias": {
"@common": "./src/common",
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"aliasStrategy": "prefer-tsconfig",
"extensions": [
Expand Down Expand Up @@ -1492,12 +1492,12 @@ exports[`environment config > should print environment config when inspecting co
exports[`environment config > should support adding a single environment plugin 1`] = `
{
"ssr": {
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
"global": "ssr",
"ssr": "ssr",
},
"web": {
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
"global": "web",
"web": "web",
},
Expand Down Expand Up @@ -1602,7 +1602,7 @@ exports[`environment config > should support modifying environment config by api
"resolve": {
"alias": {
"@common": "./src/common",
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"aliasStrategy": "prefer-tsconfig",
"extensions": [
Expand Down Expand Up @@ -1760,7 +1760,7 @@ exports[`environment config > should support modifying environment config by api
"alias": {
"@common": "./src/common",
"@common1": "./src/common1",
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"aliasStrategy": "prefer-tsconfig",
"extensions": [
Expand Down Expand Up @@ -1918,7 +1918,7 @@ exports[`environment config > should support modifying environment config by api
"alias": {
"@common": "./src/common",
"@common1": "./src/common1",
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"aliasStrategy": "prefer-tsconfig",
"extensions": [
Expand Down Expand Up @@ -2078,7 +2078,7 @@ exports[`environment config > should support modifying single environment config
"resolve": {
"alias": {
"@common": "./src/common",
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"aliasStrategy": "prefer-tsconfig",
"extensions": [
Expand Down Expand Up @@ -2236,7 +2236,7 @@ exports[`environment config > should support modifying single environment config
"alias": {
"@common": "./src/common",
"@common1": "./src/common1",
"@swc/helpers": "<ROOT>/node_modules/<PNPM_INNER>/@swc/helpers",
"@swc/helpers": "<PNPM_INNER>/@swc/helpers",
},
"aliasStrategy": "prefer-tsconfig",
"extensions": [
Expand Down
8 changes: 4 additions & 4 deletions packages/core/tests/__snapshots__/swc.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ exports[`plugin-swc > should apply environment config correctly 1`] = `
{
"resolve": {
"alias": {
"core-js": "<ROOT>/node_modules/<PNPM_INNER>/core-js",
"core-js": "<PNPM_INNER>/core-js",
},
},
"type": "javascript/auto",
Expand Down Expand Up @@ -748,7 +748,7 @@ exports[`plugin-swc > should enable preset-env in entry mode 1`] = `
{
"resolve": {
"alias": {
"core-js": "<ROOT>/node_modules/<PNPM_INNER>/core-js",
"core-js": "<PNPM_INNER>/core-js",
},
},
"type": "javascript/auto",
Expand Down Expand Up @@ -828,7 +828,7 @@ exports[`plugin-swc > should enable preset-env in usage mode 1`] = `
{
"resolve": {
"alias": {
"core-js": "<ROOT>/node_modules/<PNPM_INNER>/core-js",
"core-js": "<PNPM_INNER>/core-js",
},
},
"type": "javascript/auto",
Expand Down Expand Up @@ -909,7 +909,7 @@ exports[`plugin-swc > should use the correct core-js version 1`] = `
{
"resolve": {
"alias": {
"core-js": "<ROOT>/node_modules/<PNPM_INNER>/core-js",
"core-js": "<PNPM_INNER>/core-js",
},
},
"type": "javascript/auto",
Expand Down
26 changes: 13 additions & 13 deletions packages/plugin-babel/tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ exports[`plugins/babel > babel-loader should works with builtin:swc-loader 1`] =
"configFile": false,
"plugins": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
"<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
{
"version": "2022-03",
},
],
],
"presets": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
"<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
{
"allExtensions": true,
"allowDeclareFields": true,
Expand Down Expand Up @@ -161,15 +161,15 @@ exports[`plugins/babel > babel-loader should works with builtin:swc-loader for R
"configFile": false,
"plugins": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
"<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
{
"version": "2022-03",
},
],
],
"presets": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
"<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
{
"allExtensions": true,
"allowDeclareFields": true,
Expand Down Expand Up @@ -252,15 +252,15 @@ exports[`plugins/babel > should apply environment config correctly 1`] = `
"configFile": false,
"plugins": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
"<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
{
"version": "2022-03",
},
],
],
"presets": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
"<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
{
"allExtensions": true,
"allowDeclareFields": true,
Expand Down Expand Up @@ -344,16 +344,16 @@ exports[`plugins/babel > should apply environment config correctly 2`] = `
"configFile": false,
"plugins": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
"<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
{
"version": "legacy",
},
],
"<ROOT>/node_modules/<PNPM_INNER>/@babel/plugin-transform-class-properties/lib/index.js",
"<PNPM_INNER>/@babel/plugin-transform-class-properties/lib/index.js",
],
"presets": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
"<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
{
"allExtensions": true,
"allowDeclareFields": true,
Expand Down Expand Up @@ -436,15 +436,15 @@ exports[`plugins/babel > should set babel-loader 1`] = `
"configFile": false,
"plugins": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
"<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
{
"version": "2022-03",
},
],
],
"presets": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
"<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
{
"allExtensions": true,
"allowDeclareFields": true,
Expand Down Expand Up @@ -530,7 +530,7 @@ exports[`plugins/babel > should set babel-loader when config is add 1`] = `
"configFile": false,
"plugins": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
"<PNPM_INNER>/@babel/plugin-proposal-decorators/lib/index.js",
{
"version": "2022-03",
},
Expand All @@ -546,7 +546,7 @@ exports[`plugins/babel > should set babel-loader when config is add 1`] = `
],
"presets": [
[
"<ROOT>/node_modules/<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
"<PNPM_INNER>/@babel/preset-typescript/lib/index.js",
{
"allExtensions": true,
"allowDeclareFields": true,
Expand Down
Loading