Repository navigation
fix(@angular/build): resolve library bundle sourcemap sources relative to output directory - #34238
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the library builder pipeline to correctly resolve and relativize sourcemap paths for both ESM and DTS outputs. It introduces the outputPath parameter to executeMultiBundle and utilizes sourcemapPathTransform to transform source paths to relative POSIX paths. Additionally, the DTS bundler configuration is updated to use the 'oxc' generator, and corresponding tests are added to verify the correctness of the generated sourcemap paths. I have no feedback to provide.
b51de76 to
3fc6e40
Compare
41217dd to
88eb30c
Compare
…e to output directory Configure `cwd` and `sourcemapPathTransform` when generating FESM and declaration bundles in the library builder so that emitted sourcemap `sources` entries are computed relative to the actual output directory.
…relative to output directory
88eb30c to
b6017cf
Compare
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check to confirm your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
In the
@angular/build:librarybuilder, Rolldown is invoked with a relativedir('fesm2022'or'types'), causing thesourcespaths in emitted.mjs.mapand.d.ts.mapfiles to be computed relative to<cwd>/fesm2022and<cwd>/typesrather than the actual output directory (<outputPath>/fesm2022and<outputPath>/types).What is the new behavior?
sourcemapPathTransformis configured to compute sourcemapsourcespaths relative to the actual output directory.Does this PR introduce a breaking change?