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
We have created a web component and want to add an input that will allow logging to the console. However in prod mode, nothing appears in the console.
console.log() does work as expected in dev mode - however, what are the implications (e.g. for code minification etc.) if we always build the project in this mode?
Expected behavior:
A stencil build flag (for example: --log) could be implemented to allow console.log() in prod mode if required
Stencil version:
I'm submitting a:
[x] bug report
[ ] 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:
We have created a web component and want to add an input that will allow logging to the console. However in prod mode, nothing appears in the console.
console.log() does work as expected in dev mode - however, what are the implications (e.g. for code minification etc.) if we always build the project in this mode?
Expected behavior:
A stencil build flag (for example: --log) could be implemented to allow console.log() in prod mode if required
Steps to reproduce:
npm install @stencil/core
Create component containing console.log()
stencil build
The text was updated successfully, but these errors were encountered: