perf: define Rspack version to reduce require calls#10121
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
CodSpeed Performance ReportMerging #10121 will not alter performanceComparing 🎉 Hooray!
|
|
This is weird. We're supposed to add prettier in lint-staged https://github.com/web-infra-dev/rspack/actions/runs/14590748863/job/40925296541?pr=10121 |
|
@h-a-n-a There are two CI issues:
@stormslowly is working on resolving them 😄 |
Thanks for the heads-up. IMO, part of the issue is located at lint-staged. Maybe we didn't trigger it locally. |
Agreed, we should check the lint-staged configuration too. @stormslowly cc~ |
Summary
The
rspackVersionandwebpackVersionare static values and can be defined as env vars inrslib.config.ts, this helps to reducerequire()calls and make the startup faster.The
release-canary.ymlhas been updated to build JS packages after updating the package.json#verison. Tested in https://github.com/web-infra-dev/rspack/actions/runs/14592747054.Checklist