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

fix: inline sources in the .map file so the src folder is not mandatory #6732

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

pskelin
Copy link
Contributor

@pskelin pskelin commented Mar 17, 2023

The current source map files contained a link to the source file so the src folder is published to npm. This was breaking for the src/generated content as it has source maps, but the sources are ignored and not shipped.

With this change, the sources are inline in the .map file so shipping source files is no longer necessary
Now the .map file contains a string value inside "sourcesContent"

The src folder is still shipped, but only the .hbs, .properties and .css files as necessary as they might be used by other packages.

Fixes: #6711
Fixes: #6446

@pskelin pskelin merged commit 16771a6 into main Mar 21, 2023
@pskelin pskelin deleted the fix-sourcemaps branch March 21, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[typescript]: source maps missing for src/generated Source map: Webpack is compiling with warnings
3 participants