-
-
Notifications
You must be signed in to change notification settings - Fork 490
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: ๐ธ Add packageSourceMaps option to WebpackPluginConfig #2581
Conversation
Add ignoreSourcemap to WebpackPluginConfig and use this to restrict generated source-map files from being included in the packaged application. โ Closes: #2573
Can someone review and merge this. This looks really good. |
Thanks for the review @erickzhao, I have made a change to address your comments. |
Codecov Report
@@ Coverage Diff @@
## master #2581 +/- ##
==========================================
+ Coverage 66.27% 75.64% +9.37%
==========================================
Files 91 77 -14
Lines 2775 2361 -414
Branches 679 439 -240
==========================================
- Hits 1839 1786 -53
+ Misses 808 423 -385
- Partials 128 152 +24
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for a bit of nitpicking, but after giving this a bit more thought, I feel like making the flag more descriptive towards packaging might be useful, since there's no indication that this is for the package build only.
i.e.
- includeSourceMap
+ packageSourceMaps
Eagerly waiting for this to be merged ๐ |
Makes sense @erickzhao , updated. |
Stop including source maps in a packages application by default.
Add
packageSourceMaps
toWebpackPluginConfig
allow source maps to be included in the packaged application.โ Closes: #2573
Summarize your changes:
Add a configuration option to
WebpackPluginConfig
:Update the
forgeConfig.packagerConfig.ignore
function inWebpackPlugin.resolveForgeConfig
to returntrue
if the filename ends in.js.map
unless the above configuration option is set totrue
.