Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

inside wrap.js syntaxError are emitted on process.nextTick() #266

Closed
FugueNation opened this Issue · 1 comment

2 participants

@FugueNation

Since syntaxErrors are emitted on process.nextTick() and bundle will return code even if there were syntax errors, process.nextTick seems to be too late to notify the application about the error (spent half a day, because this assumption was not true).

I fixed my local code by removing the process.nextTick and didn't see any odd side effects, but I'm left wondering what was the reason to delay the events in the first place, and if there is no particular reason, I can send a pull request to fix this

@substack
Owner

Thanks for posting this issue. In v2 all errors just emit 'error' events.

@substack substack closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.