kmagiera / babel-watch

Reload your babel-node app on JS source file changes. And do it fast.
MIT License
528 stars 70 forks source link

document is not defined #117

Closed jhessin closed 3 years ago

jhessin commented 3 years ago

Expected behavior: Running babel-watch should give the same result as running babel directly.

Actual behavior: I get an error with babel-watch that I don't get with babel.

ReferenceError: document is not defined

if I run babel directly this error doesn't occur.

The only thing I'm currently using babel for is stripping flow annotations.

STRML commented 3 years ago

Sorry, this is not something we can reproduce without much more detail. There is nothing about babel-watch that should require a DOM.

jhessin commented 3 years ago

Gave Babel the boot. Using typescript now.