Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jsii): make source map behavior fully configurable #3558

Merged
merged 9 commits into from
Jun 1, 2022

Conversation

RomainMuller
Copy link
Contributor

Instead of enabling declarations maps everywhere as was done in #3521,
allow customers to define their desired source-map related configuration
in the jsii.tsc stanza of package.json.

This change in stance is motivated by how introduction of declarations
map causes broad asset hash changes in consumer code, which effectively
breaks many snapshot-based regression tests, and this feature should
hence be opt-in.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Instead of enabling declarations maps everywhere as was done in #3521,
allow customers to define their desired source-map related configuration
in the `jsii.tsc` stanza of `package.json`.

This change in stance is motivated by how introduction of declarations
map causes broad asset hash changes in consumer code, which effectively
breaks many snapshot-based regression tests, and this feature should
hence be opt-in.
@RomainMuller RomainMuller requested a review from rix0rrr May 20, 2022 14:41
@RomainMuller RomainMuller self-assigned this May 20, 2022
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label May 20, 2022
@RomainMuller
Copy link
Contributor Author

Nudge @andrestone - this will be of interest to you...

@RomainMuller RomainMuller force-pushed the rmuller/user-configurable-source-maps branch from b7edf84 to 3f7b19a Compare May 20, 2022 15:03
@RomainMuller RomainMuller force-pushed the rmuller/user-configurable-source-maps branch from 3f7b19a to a269e24 Compare May 20, 2022 15:04
@mergify
Copy link
Contributor

mergify bot commented Jun 1, 2022

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Jun 1, 2022
@mergify
Copy link
Contributor

mergify bot commented Jun 1, 2022

Merging (with squash)...

@mergify mergify bot merged commit 06d9a39 into main Jun 1, 2022
@mergify mergify bot deleted the rmuller/user-configurable-source-maps branch June 1, 2022 13:59
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants