Giter VIP home page Giter VIP logo

Comments (4)

jamiebuilds avatar jamiebuilds commented on May 1, 2024

You should be using a .babelrc file, I have yet to hear a reason its not possible.

from babel-plugin-react-transform.

IanVS avatar IanVS commented on May 1, 2024

I certainly would like to use a .babelrc, except that I've found that if a library has one, the consuming app will try to use it (see this issue). In my development model, I want to use npm link and work concurrently in the library and consuming project rather than frequently publishing to npm, so I can't just add it to my .npmignore. Or, I may move the whole library into my consuming app, but it will still need a unique babel configuration. If you have suggestions of how I could continue using a .babelrc, I'd love to know how.

from babel-plugin-react-transform.

 avatar commented on May 1, 2024

@IanVS You can use the babel presets on the cli pretty easily to support your specific use case here.

You can use https://github.com/danmartinez101/babel-preset-react-hmre as an example.

Then just babel --presets react-hmre or babel --presets your-version

n.b. this is just working around the issue as described in the react-native issue of course

from babel-plugin-react-transform.

IanVS avatar IanVS commented on May 1, 2024

@danmartinez101, nice! That looks perfect, thank you.

from babel-plugin-react-transform.

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.