fix(core): bump rslib and fix type related issues#13376
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adjusts the @rspack/core prebundle configuration to normalize the generated declaration entrypoints for webpack-sources and watchpack, ensuring the emitted .d.ts filenames and package.json types field stay consistent.
Changes:
- Add helpers to rename copied
.d.tsfiles and rewrite the bundled dependencypackage.jsontypesfield. - Normalize
webpack-sourcesdeclarations by renamingtypes.d.tstoindex.d.tsand updatingtypes. - Enhance
watchpackdeclarations by injecting a missingWatchOptionstype export, preserving thegraceful-fs@ts-ignorepatch, and updatingtypes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
eb3b1b1 to
fe113dd
Compare
Rsdoctor Bundle Diff AnalysisFound 5 projects in monorepo, 0 projects with changes. 📊 Quick Summary
Generated by Rsdoctor GitHub Action |
📦 Binary Size-limit
🙈 Size remains the same at 48.97MB |
Merging this PR will not alter performance
Comparing Footnotes
|
fe113dd to
0ce4523
Compare
|
LGTM |
Summary
Improve
@rspack/coredeclaration compatibility undermoduleResolution: "nodenext".webpack-sourcesandwatchpackSourceandWatchOptionsresolvable from bundled dependency declarations@rslib/coreto0.20.1and adapt the emittedindex.js/index.d.tsrewrites soRspack.*namespace types remain accessibleRelated links
Sourcetype resolves toanyundermoduleResolution: "nodenext"due to unresolvable../compiled/webpack-sourcesimport #13199Checklist