You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
CLI: 4.2.0
Cross-platform modules: 4.2.1
Android Runtime: 4.2.0
iOS Runtime: 4.2.0
Describe the bug
The default webpack configuration does not generate sourceMaps with --env.uglify (see webpack/webpack#2704)
To Reproduce tns prepare android --bundle --env.uglify --env.sourceMap
See that source maps are not generated.
Expected behavior
Source maps are generated.
Additional context
This is a simple fix in webpack.config.js by adding sourceMap: !!sourceMap to UglifyJsPlugin.
The text was updated successfully, but these errors were encountered:
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
The default webpack configuration does not generate sourceMaps with --env.uglify (see webpack/webpack#2704)
To Reproduce
tns prepare android --bundle --env.uglify --env.sourceMap
See that source maps are not generated.
Expected behavior
Source maps are generated.
Additional context
This is a simple fix in
webpack.config.js
by addingsourceMap: !!sourceMap
to UglifyJsPlugin.The text was updated successfully, but these errors were encountered: