Skip to content

Commit

Permalink
feat(rspack): update rspack to install the latest version (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 authored Mar 6, 2024
1 parent 271625e commit ee0e8cb
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 415 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"@nx/vite": "18.1.0-beta.2",
"@nx/workspace": "18.1.0-beta.2",
"@phenomnomnominal/tsquery": "^5.0.1",
"@rspack/core": "^0.4.4",
"@rspack/dev-server": "^0.4.4",
"@rspack/plugin-minify": "^0.4.4",
"@rspack/plugin-react-refresh": "^0.4.4",
"@rspack/core": "^0.5.6",
"@rspack/dev-server": "^0.5.6",
"@rspack/plugin-minify": "^0.5.6",
"@rspack/plugin-react-refresh": "^0.5.6",
"@swc-node/register": "1.8.0",
"@types/fs-extra": "^11.0.1",
"@types/jest": "29.4.0",
Expand Down Expand Up @@ -73,4 +73,3 @@
"verdaccio": "^5.0.4"
}
}

17 changes: 17 additions & 0 deletions packages/rspack/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@
"alwaysAddToPackageJson": false
}
}
},
"18.1.0": {
"version": "18.1.0-beta.0",
"packages": {
"@rspack/core": {
"version": "~0.5.6",
"alwaysAddToPackageJson": false
},
"@rspack/dev-server": {
"version": "~0.5.6",
"alwaysAddToPackageJson": false
},
"@rspack/plugin-minify": {
"version": "~0.5.6",
"alwaysAddToPackageJson": false
}
}
}
},
"version": "0.1"
Expand Down
6 changes: 3 additions & 3 deletions packages/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
"generators": "./generators.json",
"executors": "./executors.json",
"dependencies": {
"@nx/js": "^17.0.1",
"@nx/devkit": "^17.0.1",
"@nx/js": "^18.0.7",
"@nx/devkit": "^18.0.7",
"@phenomnomnominal/tsquery": "~5.0.1",
"ajv": "^8.12.0",
"ajv-keywords": "5.1.0",
"less-loader": "11.1.0",
"license-webpack-plugin": "^4.0.2",
"sass-loader": "^12.2.0",
"stylus-loader": "^7.1.0",
"@nx/eslint": "^17.0.1"
"@nx/eslint": "^18.0.7"
},
"peerDependencies": {
"@rspack/core": ">= 0.4.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/rspack/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const rspackCoreVersion = '~0.4.4';
export const rspackDevServerVersion = '~0.4.4';
export const rspackCoreVersion = '~0.5.6';
export const rspackDevServerVersion = '~0.5.6';

export const rspackPluginMinifyVersion = '~0.4.4';
export const rspackPluginReactRefreshVersion = '~0.4.4';
export const rspackPluginMinifyVersion = '~0.5.6';
export const rspackPluginReactRefreshVersion = '~0.5.6';
export const lessLoaderVersion = '~11.1.3';

export const reactVersion = '~18.2.0';
Expand Down
2 changes: 2 additions & 0 deletions packages/rspack/src/utils/with-nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ export function withNx(_opts = {}) {
// It looks to be an issue with rspack itself, but will check back after Nx 16 release
// once I can reproduce a small example repo with rspack only.
alias,
// We need to define the extensions that rspack can resolve
extensions: ["...", ".ts", ".tsx", ".jsx"]
// tsConfigPath: path.join(context.root, options.tsConfig),
},
infrastructureLogging: {
Expand Down
Loading

0 comments on commit ee0e8cb

Please sign in to comment.