Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.log() does not work with Stencil One in prod mode #1799

Closed
mo-jenniferplatt opened this issue Aug 9, 2019 · 0 comments
Closed

console.log() does not work with Stencil One in prod mode #1799

mo-jenniferplatt opened this issue Aug 9, 2019 · 0 comments
Labels

Comments

@mo-jenniferplatt
Copy link

Stencil version:

 @stencil/core@1.2.3

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

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

No branches or pull requests

1 participant