Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Allow configuring 'source-map' instead of 'hidden-source-map' for production builds. #763

Open
lxe opened this issue Apr 19, 2019 · 1 comment

Comments

@lxe
Copy link
Contributor

lxe commented Apr 19, 2019

Fusion-cli correctly .map files for production builds, but uses hidden-source-map webpack config, which omits the //# sourceMappingURL comment at the end of the source files.

From https://webpack.js.org/configuration/devtool/:

hidden-source-map - Same as source-map, but doesn't add a reference comment to the bundle. Useful if you only want SourceMaps to map error stack traces from error reports, but don't want to expose your SourceMap for the browser development tools.

For many projects, it's useful to expose hidden source maps to devtools to allow debugging in production.

I'd like to propose an option to use 'source-map' instead if 'hidden-source-map'

@mlmorg
Copy link

mlmorg commented May 3, 2019

Sounds good. Could you put up a PR for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants