Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.8k
Switch fromwebpack torspack for bundling#16005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for making a pull request to jupyterlab! |
jtpio commentedMar 15, 2024
Opening early to:
|
jtpio commentedMar 18, 2024
7032cc7 to9446adfComparee64a82d toa158954Compareerkin98 commentedApr 2, 2024
Hi@jtpio , how to migrate custom widget library with custom webpack.config.js? |
jtpio commentedApr 10, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Rspack 0.6.0 now supports it:https://www.rspack.dev/blog/announcing-0.6.html#built-in-support-for-mini-css-extract-plugin |
FoSuCloud commentedApr 14, 2024
@jtpio I want to join your work, should I continue contributing to the jupyterlab-rspack project? |
jtpio commentedApr 15, 2024
Thanks@FoSuCloud! https://github.com/jtpio/jupyterlab-rspack might be lagging a bit behind now. Maybe we could work on this PR directly instead? If you are able to open PRs against this branch I would be happy to merge your contributions. There are still a few items listed in the top comment that we should check / re-enable, that can serve as a good starting point for continuing this work. Thank you again for offering your help! |
jtpio commentedApr 15, 2024
@erkin98 for now this is not ready yet. But hopefully the custom |
jtpio commentedApr 16, 2024
Looks like updating to theRspack 0.6.1 release introduces the following error in the dev tools console: |
xc2 commentedApr 16, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
web-infra-dev/rspack#6230 this might be the same cause. Could you please try out the nightly version? seems not help the current nightly version |
jtpio commentedApr 17, 2024
Thanks@xc2 for chiming in! Also updating to the latest |
xc2 commentedApr 17, 2024
Thanks! @ahabhgk fixes it inweb-infra-dev/rspack#6265 please try 0.6.2-canary-4b8f4a6-20240417094517 |
jasongrout commentedDec 3, 2025
I'm not seeing mathjax warnings in the current PR tests and when I manually do |
Claude Code (after a few restarts with guidance) found the issue and explained:The issue was that the watch script on line 17 of dev_mode/package.json was running rspack --watch without specifying the config file. When rspack runs without a config, it tries to use default conventions and looks for ./src/index.js as the entry point, which doesn't exist in your setup. I've updated the watch script to:"watch": "rspack --watch --config webpack.config.js"This matches the pattern used by the build script on line 7 and ensures rspack uses the correct configuration with the proper entry points defined in webpack.config.js.
jasongrout commentedDec 3, 2025
Fixed and tested |
jasongrout commentedDec 3, 2025
licenses seems to work: |
jasongrout commentedDec 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Watch workflows we are targeting:
I think what we'll be missing is For reference a lot of the watching stuff was last touched in#6700 |
jasongrout commentedDec 4, 2025
@jtpio - ready for review. @krassowski,@jtpio - what do you think about merging this now and making a quick alpha of 4.6 so we can start getting feedback on how the build system works for the staging directory? |
jtpio commentedDec 5, 2025
Oh wow, thanks@jasongrout for working on this and having all the checks finally pass! Agreed that it would be better to merge this early in an alpha release, to have the full release cycle to better test it 👍 |
jtpio commentedDec 5, 2025
Let's add a note about this in theextension migration guide, for visibility? |
jasongrout commentedDec 5, 2025
Done! |
jtpio commentedDec 6, 2025
jasongrout commentedDec 10, 2025
Resolved the merge conflict in the release notes file. |
jtpio commentedDec 11, 2025
Thanks@jasongrout for helping with this PR! I checked the last commits and they look good. As discussed yesterday during the meeting (jupyterlab/frontends-team-compass#279 (comment)), it would be great to move forward with this so we have the full 4.6 release cycle to put this under more testing and fix potential issues. |
jasongrout commentedDec 11, 2025
Jeremy, I'm taking your comment as a postive review on the parts I've done, and I'm positively reviewing the parts you've done, so I think we've satisfied the review requirement. We also discussed this in the dev meeting yesterday with a positive result. So I think we're good to merge! |
19ccacf intojupyterlab:mainUh oh!
There was an error while loading.Please reload this page.







Uh oh!
There was an error while loading.Please reload this page.
References
#15035
List of supported webpack plugins:https://www.rspack.dev/plugins/webpack/
Code changes
rspackinstead ofwebpackfor bundlingwebpack.config.jstorspack.config.js. Or keep the existingwebpack.config.jsand userspack --config@rspack/cliand@rspack/corewhen a new version is released, to grab the fix for[Feature]: add support for generator.dataUrl as a function in loader config web-infra-dev/rspack#5640license-webpack-pluginworks as expected. Normally it should be supported:https://www.rspack.dev/blog/announcing-0.2#license-webpack-plugin@type/webpack-sources:fix: fix: remove@types/webpack-sourcesand add declaration ofwebpack-sources(close: #5867) web-infra-dev/rspack#5868experiments.css(set totrueby default), or keep the currentcss-loader,style-loader,mini-css-extract-plugin. Might needsupport mini-css-extract-plugin web-infra-dev/rspack#3210WPPlugin.FilterWatchIgnorePluginindev_mode/webpack.config.js?jlpm build:dev:prod:minimize:report@jasongrout used Claude Code to assist in this migration
User-facing changes
None
Backwards-incompatible changes
Should be none for most users and administrators using a stock JupyterLab with prebuilt extensions. Rspack supports module federation so existing extensions are compatible with JupyterLab built with Rspack and don't need to be updated.
Below is a screenshot showing JupyterLab running in dev mode from this branch, picking up the
jupyterlab-execute-timeprebuilt extension:Other references
Migrating to rspack: