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

--ignore flag not working #106

Closed maiers closed 3 years ago

maiers commented 5 years ago

It looks like babel (v7.5.4) has no util object

To reproduce:

call babel-watch --ignore ./node_modules <file>

Actual outcome:

./node_modules/babel-watch/babel-watch.js:377
    return babel.util.shouldIgnore(filename, ignore || [], only);

Expected outcome:

Requested expression gets ignored by babel

jonas-db commented 4 years ago

I have this problem! Workaround please @STRML ?

adammichaelwilliams commented 4 years ago

This is due to a change in Babel 7.

STRML commented 3 years ago

Fixed in 7.2.0.