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

Chore(build): do not build JS sourcemaps #2432

Merged
merged 4 commits into from
Aug 18, 2022
Merged

Conversation

scottrippey
Copy link
Member

@scottrippey scottrippey commented Aug 18, 2022

What

We introduced source-map generation to improve Victory development (#2307).
However, we intentionally did not publish these maps to NPM due to excessive file size (several MB).

This PR disables source-maps from the .js builds. This prevents the //# sourceMappingURL=index.d.ts.map comments from being generated and published.

This PR does NOT disable .d.ts.map generation. This allows the developer workflow to stay awesome, since all of our core packages have been converted to TS. (these map files are still not published to NPM)

This will address #2346

scottrippey added 3 commits August 18, 2022 16:31

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@scottrippey
Copy link
Member Author

I did a spot-check, and the only build difference is the lack of the .map file and the lack of the //# sourceMappingURL=index.d.ts.map comments! 👍

Copy link
Member

@ryan-roemer ryan-roemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@scottrippey scottrippey merged commit c40945d into main Aug 18, 2022
@scottrippey scottrippey deleted the build/source-maps branch August 18, 2022 22:57
@github-actions github-actions bot mentioned this pull request Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants