Coder Social home page Coder Social logo

Comments (7)

qimingweng avatar qimingweng commented on May 18, 2024

This is the full project I'm using, to reproduce.

https://github.com/qimingweng/react-transform-catch-errors-bug

from react-transform-catch-errors.

gaearon avatar gaearon commented on May 18, 2024

cc @thejameskyle

from react-transform-catch-errors.

jamiebuilds avatar jamiebuilds commented on May 18, 2024

Decorators are not yet supported in Babel 6. Track https://phabricator.babeljs.io/T2645

from react-transform-catch-errors.

qimingweng avatar qimingweng commented on May 18, 2024

@thejameskyle I see. I was using https://www.npmjs.com/package/babel-plugin-transform-decorators-legacy to get the decorators to work again.

I have two questions, if you'll indulge me:

  1. Does react-transform run before other babel plugins? Is there a way to specify which order babel plugins are used? That way, perhaps I can run transform-decorators-legacy before running react-transform and then get this feature back.
  2. The hot loading module still works with transform-decorators-legacy, any thoughts as to why this module would be different?

from react-transform-catch-errors.

qimingweng avatar qimingweng commented on May 18, 2024

And side note, changing the syntax from decorator to regular function application does indeed allow this package to work again.

from react-transform-catch-errors.

jamiebuilds avatar jamiebuilds commented on May 18, 2024

Does react-transform run before other babel plugins? Is there a way to specify which order babel plugins are used?

That's not really how it works, all plugins get run at the same time

from react-transform-catch-errors.

qimingweng avatar qimingweng commented on May 18, 2024

@thejameskyle Thanks for clearing that up. Reading https://phabricator.babeljs.io/T6730 it makes a lot more sense now.

from react-transform-catch-errors.

Related Issues (17)

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.