Bump rspack to v2.0.0#93
Conversation
|
Build fails with error: |
|
I don't think we should have |
|
I downloaded a wheel from downstream test here and see references to Is this an issue with downstream tests not properly rewiring the downstream build to use the latest version? |
I think its because the the downstream JupyterLab still pins
One way to test jupyterlab on rspack 2.0 is to explicitly add Like this: downstream/package.json
{
"resolutions": {
"@jupyter/builder": "file:/Users/darshan/dev/opensource/jupyter-builder/jupyter-builder-0.0.8.tgz",
"@rspack/core": "2.0.0"
}
}What do you suggest ? |
|
Could we remove |
|
I think that approach makes sense. However, there’s an issue. In several places, JupyterLab invokes the "build": "npm run clean && rspack --config webpack.config.js",This assumes that the One possible approach could be to ensure that |
|
Another approach would be to remove the rspack invocations from JupyterLab scripts and replace them with a builder alias pointing to rspack, but at the end it would end of the day we would end up with a leaky abstraction as any special config downstream would need to refrence rspack anyways.
I think this is the least invasive way forward for now. |
|
Locally confirmed that modifying packages/services/rspack.config.js as done in jupyterlab/jupyterlab#18467 fixes the build issue and successfully builds jupyterlab. - library: '@jupyterlab/services',
- libraryTarget: 'umd',
- umdNamedDefine: true,
+ library: {
+ name: '@jupyterlab/services',
+ type: 'umd',
+ umdNamedDefine: true
+ },Extensions also do not seem to be affected. |
|
I added the patch to downstream test CI, and the JupyterLab build passes successfully. The Notebook build also passes. Only an upgrade to Rspack v2 is required on notebook side, with no additional changes. However, when downloading and inspecting the JupyterLab wheel from CI, there are still references to I believe this is because we only added Rspack v2 in the I guess for final testing, we could update CI to modify rspack version on each Also, jupyterlab/jupyterlab#18467 still seems relevant unless we decide to completely remove the dependency on Rspack from core, as discussed earlier. After this PR gets merged and released, we could continue work there. |
Indeed. Do you want to try resolving conflicts there? |
|
So shall we remove this temporary patch in CI and merge it ? |
|
Removed the patch. I believe we can merge this one with failing CI. |
Fixes #70