ionic-team / stencil

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
https://stenciljs.com
Other
12.41k stars 777 forks source link

Feature request: Configure builds to include source maps #1486

Closed petermikitsh closed 5 years ago

petermikitsh commented 5 years ago

Stencil version:

 @stencil/core@0.18.0

I'm submitting a:

[ ] bug report [X] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

Components built with stencil produce minified, sourcemap-less code.

Expected behavior:

Builds are configurable to output source maps. In the case that #1485 is rejected, providing source maps for builds would enhance the developer experience of consuming stencil components. Currently, when errors are thrown, it is difficult to trace their origin from minified code with no source maps.

jthoms1 commented 5 years ago

Duplicate of #1255

splitinfinities commented 2 years ago

Heads up, Stencil supports sourcemaps as of v2.9.0! https://stenciljs.com/docs/config#sourcemap