Repository navigation
fix(angular): remove dangling sourceMappingURL from published bundle - #6690
riccardoperra wants to merge 3 commits into
Conversation
ng-packagr always emits source maps for FESM bundles. The build deleted the .map files but left the sourceMappingURL comment in tanstack-angular-table.mjs, so tools like the Vite dev server failed to load the missing map. Closes #6686
🦋 Changeset detectedLatest commit: 396383c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
View your CI Pipeline Execution ↗ for commit 396383c
💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗ ☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview1 package(s) bumped directly, 0 bumped as dependents. 🟩 Patch bumps
|
Closes #6686
🎯 Changes
The published
dist/fesm2022/tanstack-angular-table.mjsends with//# sourceMappingURL=tanstack-angular-table.mjs.map, but the package ships no.mapfiles. Tools that follow the comment fail to load the map. The Vite dev server, for example, logs anENOENTstack trace on every start.ng-packagr always emits source maps for the FESM bundles. It passes
sourcemap: trueto rolldown, and neitherng-package.jsonnor the tsconfig can turn that off (checked on 22.2.6, 22.3.0, andmain). The build already deleted the.mapfiles, as decided in #6427, but it left the comment in place. The other two entry points only re-export fromtable-core, so they never got a map or a comment.This PR replaces the shell cleanup after
ng-packagrwithpackages/angular-table/scripts/postbuild.js. The script:package.jsonthat ng-packagr writes todist(this replacesrimraf ./dist/package.json),.mapfiles,sourceMappingURLcomment from the.mjsbundles.The package still ships no source maps.
scripts/is not infiles, so the script is not published.Verified on a packed tarball: it contains no
.mapfiles and nosourceMappingURLcomments. publint--strict, sherif, and knip pass.✅ Checklist
pnpm testandpnpm test:e2e, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit
Chores