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
{{ message }}
Repository navigation
this.warn and this.error are not available in transformBundle #1282
Btw - I just came across this issue in my plugin (wanted this.warn inside the resolveId function). I looked at the warn code in rollup and it's very coupled to the transform function. Because of that, the quickest solution is to just provide your own onwarn plugin option.
It's a workaround, not a solution - but it worksaround well enough for me
Activity
olsonpm commentedon Jan 24, 2017
per the wiki
transformBundle doesn't have a note about this.warn
Pauan commentedon Jan 24, 2017
@olsonpm I am aware. I am requesting that it be added to
transformBundleas well.olsonpm commentedon Jan 24, 2017
Ah I misunderstood
olsonpm commentedon Jan 27, 2017
Btw - I just came across this issue in my plugin (wanted this.warn inside the
resolveIdfunction). I looked at the warn code in rollup and it's very coupled to thetransformfunction. Because of that, the quickest solution is to just provide your ownonwarnplugin option.It's a workaround, not a solution - but it worksaround well enough for me
guybedford commentedon Jun 6, 2018
These are now available for plugins in #2208.