Comments (5)
Hey, thanks. I don't think this is intentional. I believe the intention was to have the server restart on some file changes (like assets that may be cached), but not trigger babel. It doesn't seem that this is really usable for that purpose.
I haven't had time to dig through it, maybe you have, but I would consider renaming or repurposing some of these flags.
from babel-watch.
Just noticed this issue is still open. I don't have a lot of time to dig into this other than renaming these flags.
What is the difference between --ignore
and --exclude
?
If someone can explain that to me I could try to come up with more appropriate names or put an explanation into the readme.
from babel-watch.
So:
--ignore
will watch the file, but not transpile it with Babel--exclude
will not watch the file at all and thus it won't be transpiled either.
I don't actually see a good use case for --ignore
because I assume that if you actually have this need, you already have it set in your babel config. There shouldn't be a need for a unique ignore list only when using babel-watch
, but perhaps someone else has a different idea?
from babel-watch.
In this case I think the names are actually quite fitting. How about adding this explanation to the readme?
from babel-watch.
It's technically already there, but not super clear, so I'll add an additional note.
from babel-watch.
Related Issues (20)
- error with ignored file HOT 6
- Error: Cannot find module '@babel/core' (Installing it didn't do anything) HOT 1
- Release needed HOT 3
- How to disable ">>> RESTARTING <<<" message? HOT 3
- why it's faster than the combination of nodemon and babel? HOT 1
- document is not defined HOT 2
- ipranges.json in NPM module HOT 2
- Not restarting when making changes to .graphql files HOT 6
- Extension list formatting HOT 1
- TypeError [ERR_INVALID_ARG_TYPE]: The "fd" argument must be of type number HOT 2
- Restarting but not receiving changes for some extensions HOT 3
- JavaScript API? HOT 1
- Support for root-mode option
- babel-watch announcing SIGHUP
- Process doesn't stop on SIGTERM HOT 3
- Unable to transpile node_modules HOT 4
- Application doesn't restart automatically
- Babel-errors are not forwarded to stderr HOT 5
- Degradation after refactoring and another uncaught error location HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-watch.