Comments (7)
This is the full project I'm using, to reproduce.
https://github.com/qimingweng/react-transform-catch-errors-bug
from react-transform-catch-errors.
from react-transform-catch-errors.
Decorators are not yet supported in Babel 6. Track https://phabricator.babeljs.io/T2645
from react-transform-catch-errors.
@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:
- 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.
- 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.
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.
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.
@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)
- [question] Webpack transform? HOT 1
- Incorrect error stack HOT 8
- New release? HOT 2
- react-transform-catch-errors and webpack-dev-server HOT 10
- Support functional (stateless) components HOT 4
- Server-side code transpiling issues with redbox-react HOT 8
- Need to catch errors in other lifecycle methods not only in render. HOT 1
- .babelrc in npm installation HOT 2
- Plugin tries to wrap PropTypes.shape HOT 4
- Doesn't work when used together with babel-plugin-transform-decorators-legacy HOT 4
- Document usage of custom ErrorReporter component
- Broken source maps? HOT 3
- Can this be used with React Hot Loader 1.x or 3.x?
- Cannot show errors on page.
- publish the newest version to npm, please
- Would be useful to turn off in test env as well as production HOT 1
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 react-transform-catch-errors.