Releases: kmagiera/babel-watch
Releases · kmagiera/babel-watch
v7.8.1
v7.8.0
Add --config-file option
Small release to add the --config-file
option. #124
Fix regression in `--extensions`
This release fixes #122, which was caused by an unintended regression in --extensions
. Babel's default extensions are always included. We may change this behavior in a major version bump but the behavior in v7 should not change.
`--watch` fix and BABEL_WATCH_NODE_OPTIONS
This release fixes two issues:
- #98: There wasn't a good way to reliably pass NODE_OPTIONS to the child. If you use
NODE_OPTIONS
, it will apply both to thebabel-watch
parent instance and to the child (your code), causing issues with options like--inspect
. Therefore, I have addedBABEL_WATCH_NODE_OPTIONS
, which will be ignored by the parent and passed on to the child like you'd expect. In 99.9% of cases, this is what you want.- See the README for more details.
- #120: It appears the
--watch
option (i.e.babel-watch --watch interfaces/ app.js
) didn't actually do anything very useful. It would add the folder to be watched by chokidar, but because it wasn't required by the application,babel-watch
would simply execute no action on a modification. This is not intended so that logic has been removed, and you can now watch arbitrary folders and restart on them.- Just be sure to add to
--extensions
if the files you're watching don't end in.js
. - If you need to exclude a path, use
--exclude
. Be careful not to use--ignore
, which is instead passed tobabel
. In a later release I will rename this because it's confusing. - See the README for all options.
- Just be sure to add to
NPM package bugfix
An unexpected file made it into the package. This release removes it which greatly decreases the size of the unpacked module.
7.3.0: Features!
A few new features in this release:
- Added
--before-restart
option. Use to synchronously execute a script between restarts (#79, #80, #102,#108). For example:babel-watch --before-restart="yarn lint" app.js
- Added colors to output (and
--no-colors
option)- This changes the default
RESTARTING
message in favor of something a little less obnoxious. It also prints the files that caused the restart. You can still change it using--message
.
- This changes the default
- Added
--restart-command
, so you can change the defaultrs<enter>
to manually restart. If you set--restart-command=false
, the stdin handler is turned off entirely, which is desirable for certain interactive applications. (#35) - Added sourcemaps when
--debug/--debug-brk/--inspect/--inspect-brk
are present. (#62, #118)- Added
--no-debug-source-maps
to disable this behavior, which can be useful if you want to debug the raw transpiled output.
- Added
7.2.0: New quality-of-life features!
Changes:
7.1.0: Long-awaited Bugfixes
We finally have publish access again, and have updated babel-watch
!
See the release diff for the exact changes.
Highlights:
- Fix an infinite loop bug when the pipe is closed (#85, #46, #32).
- If you're using babel-watch and have seen a
node
process stick at 100% cpu from time to time, this is now fixed if you update!
- If you're using babel-watch and have seen a
- Updated Chokidar from v1 to v3, which improves performance & atomic writes handling (#97, #101, #104, #105)
- Debounce app restart to prevent missing cache deletions (#99)
- Fix a crash on improper use of
Buffer.from()
(#100)
Thanks @kmagiera for getting publish access into the hands of the community so we can fix these bugs.
7.0: Babel 7 Support
- Update version number to
7.x
to imply Babel 7 support (#95) - Add
--inspect-brk
and allow addinghost:port
to mirrornode
options - Fix various deprecations