feat(rspack): update rspack to install the latest version (#379)

This commit is contained in:
Colum Ferry 2024-03-06 11:59:15 +00:00 committed by GitHub
parent 2cbdbb0e7c
commit a2d91f0c8e
4 changed files with 26 additions and 7 deletions

View File

@ -24,6 +24,23 @@
"alwaysAddToPackageJson": false "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" "version": "0.1"

View File

@ -19,8 +19,8 @@
"generators": "./generators.json", "generators": "./generators.json",
"executors": "./executors.json", "executors": "./executors.json",
"dependencies": { "dependencies": {
"@nx/js": "^17.0.1", "@nx/js": "^18.0.7",
"@nx/devkit": "^17.0.1", "@nx/devkit": "^18.0.7",
"@phenomnomnominal/tsquery": "~5.0.1", "@phenomnomnominal/tsquery": "~5.0.1",
"ajv": "^8.12.0", "ajv": "^8.12.0",
"ajv-keywords": "5.1.0", "ajv-keywords": "5.1.0",
@ -28,7 +28,7 @@
"license-webpack-plugin": "^4.0.2", "license-webpack-plugin": "^4.0.2",
"sass-loader": "^12.2.0", "sass-loader": "^12.2.0",
"stylus-loader": "^7.1.0", "stylus-loader": "^7.1.0",
"@nx/eslint": "^17.0.1" "@nx/eslint": "^18.0.7"
}, },
"peerDependencies": { "peerDependencies": {
"@rspack/core": ">= 0.4.0" "@rspack/core": ">= 0.4.0"

View File

@ -1,8 +1,8 @@
export const rspackCoreVersion = '~0.4.4'; export const rspackCoreVersion = '~0.5.6';
export const rspackDevServerVersion = '~0.4.4'; export const rspackDevServerVersion = '~0.5.6';
export const rspackPluginMinifyVersion = '~0.4.4'; export const rspackPluginMinifyVersion = '~0.5.6';
export const rspackPluginReactRefreshVersion = '~0.4.4'; export const rspackPluginReactRefreshVersion = '~0.5.6';
export const lessLoaderVersion = '~11.1.3'; export const lessLoaderVersion = '~11.1.3';
export const reactVersion = '~18.2.0'; export const reactVersion = '~18.2.0';

View File

@ -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 // 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. // once I can reproduce a small example repo with rspack only.
alias, alias,
// We need to define the extensions that rspack can resolve
extensions: ["...", ".ts", ".tsx", ".jsx"]
// tsConfigPath: path.join(context.root, options.tsConfig), // tsConfigPath: path.join(context.root, options.tsConfig),
}, },
infrastructureLogging: { infrastructureLogging: {