Giter VIP home page Giter VIP logo

Comments (5)

STRML avatar STRML commented on June 3, 2024

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.

puchm avatar puchm commented on June 3, 2024

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.

STRML avatar STRML commented on June 3, 2024

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.

puchm avatar puchm commented on June 3, 2024

In this case I think the names are actually quite fitting. How about adding this explanation to the readme?

from babel-watch.

STRML avatar STRML commented on June 3, 2024

It's technically already there, but not super clear, so I'll add an additional note.

from babel-watch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.