Skip to content

Commit

Permalink
fix(rspack): pin rspack 1.2.2 (#29997)
Browse files Browse the repository at this point in the history
## Current Behavior
Rspack v1.2.3 was released with some issues around resolving and
transforming modules throwing errors at build time.

## Expected Behavior
Pin Rpsack to 1.2.2 until a solution for the above problem can be
resolved.
  • Loading branch information
Coly010 authored Feb 14, 2025
1 parent b10856b commit 309a2a9
Show file tree
Hide file tree
Showing 8 changed files with 263 additions and 73 deletions.
10 changes: 10 additions & 0 deletions docs/generated/manifests/nx-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -5139,6 +5139,16 @@
}
},
"migrations": {
"/nx-api/rspack/migrations/20.5.0-package-updates": {
"description": "",
"file": "generated/packages/rspack/migrations/20.5.0-package-updates.json",
"hidden": false,
"name": "20.5.0-package-updates",
"version": "20.5.0-beta.3",
"originalFilePath": "/packages/rspack",
"path": "/nx-api/rspack/migrations/20.5.0-package-updates",
"type": "migration"
},
"/nx-api/rspack/migrations/ensure-nx-module-federation-package": {
"description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.",
"file": "generated/packages/rspack/migrations/ensure-nx-module-federation-package.json",
Expand Down
10 changes: 10 additions & 0 deletions docs/generated/packages-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5107,6 +5107,16 @@
}
],
"migrations": [
{
"description": "",
"file": "generated/packages/rspack/migrations/20.5.0-package-updates.json",
"hidden": false,
"name": "20.5.0-package-updates",
"version": "20.5.0-beta.3",
"originalFilePath": "/packages/rspack",
"path": "rspack/migrations/20.5.0-package-updates",
"type": "migration"
},
{
"description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.",
"file": "generated/packages/rspack/migrations/ensure-nx-module-federation-package.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "20.5.0-package-updates",
"version": "20.5.0-beta.3",
"packages": {
"@rspack/core": { "version": "^1.2.2", "alwaysAddToPackageJson": false }
},
"aliases": [],
"description": "",
"hidden": false,
"implementation": "",
"path": "/packages/rspack",
"schema": null,
"type": "migration"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-url": "^8.0.2",
"@rsbuild/core": "1.1.8",
"@rspack/core": "1.1.6",
"@rspack/core": "1.2.2",
"@rspack/dev-server": "1.0.9",
"@rspack/plugin-minify": "^0.7.5",
"@rspack/plugin-react-refresh": "^1.0.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/module-federation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@
"@nx/web": "file:../web",
"picocolors": "^1.1.0",
"webpack": "^5.88.0",
"@rspack/core": "^1.1.5",
"@module-federation/enhanced": "^0.8.8",
"@module-federation/node": "^2.6.21",
"@module-federation/sdk": "^0.8.8",
"express": "^4.21.2",
"http-proxy-middleware": "^3.0.3"
},
"peerDependencies": {},
"peerDependencies": {
"@rspack/core": "^1.1.5"
},
"nx-migrations": {
"migrations": "./migrations.json"
},
Expand Down
9 changes: 9 additions & 0 deletions packages/rspack/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@
"alwaysAddToPackageJson": false
}
}
},
"20.5.0": {
"version": "20.5.0-beta.3",
"packages": {
"@rspack/core": {
"version": "^1.2.2",
"alwaysAddToPackageJson": false
}
}
}
},
"version": "0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const nxVersion = require('../../package.json').version;
export const rspackCoreVersion = '^1.1.5';
export const rspackCoreVersion = '1.2.2';
export const rspackDevServerVersion = '1.0.9';

export const rspackPluginMinifyVersion = '^0.7.5';
Expand Down
284 changes: 215 additions & 69 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 309a2a9

Please sign in to comment.