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
Current behavior: console.debug is not transpiled in ES6+ versions
Expected behavior: console.debug should be transpiled and not deleted
Steps to reproduce:
See code below
Related code:
exportnamespaceLoggingService{letlogLevel: LogLevelexportconsttrace=(message?: unknown, ...optionalParams: unknown[]): void=>{if(LogLevel.TRACE>=logLevel){console.trace(message, ...optionalParams)}}exportconstdebug=(message?: unknown, ...optionalParams: unknown[]): void=>{if(LogLevel.DEBUG>=logLevel){console.debug(message, ...optionalParams)}}exportconstlog=(message?: unknown, ...optionalParams: unknown[]): void=>{if(LogLevel.LOG>=logLevel){console.log(message, ...optionalParams)}}// Higher levels implementation come here (logic is exactly the same)exportconstinitLogLevel=(level: LogLevel): void=>{if(!logLevel&&!!level)logLevel=level}}exportenumLogLevel{TRACE=0,DEBUG=1,LOG=2,// Higher levels come here}
is transpiled in this:
varn,e!function(o){letto.trace=(o, ...n)=>{e.TRACE>=t&&console.trace(o, ...n)},o.debug=()=>{// Problem is here!},o.log=(o, ...n)=>{e.LOG>=t&&console.log(o, ...n)}// [...]},o.initLogLevel=o=>{!t&&o&&(t=o)}}(n||(n={})),function(o){o[o.TRACE=0]='TRACE',o[o.DEBUG=1]='DEBUG',o[o.LOG=2]='LOG'/**[...]*/}(e||(e={}))
Other information:
The same thing happens everywhere when console.debug is called
The text was updated successfully, but these errors were encountered:
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:
console.debug
is not transpiled in ES6+ versionsExpected behavior:
console.debug
should be transpiled and not deletedSteps to reproduce:
See code below
Related code:
is transpiled in this:
Other information:
The same thing happens everywhere when
console.debug
is calledThe text was updated successfully, but these errors were encountered: