Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Source maps not generated with --env.uglify #816

Closed
edusperoni opened this issue Feb 21, 2019 · 0 comments
Closed

Source maps not generated with --env.uglify #816

edusperoni opened this issue Feb 21, 2019 · 0 comments
Assignees

Comments

@edusperoni
Copy link
Contributor

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.

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

3 participants