-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add __source to JSX transformation for better DX #764
Comments
(Only in DEV) ;-) |
#devmodegate |
@rauchg how do we identify whether we are on the dev mode or not? CRA is doing that with an NODE_ENV. Seems like we are not depending on NODE_ENV for the build time. I think we should set it while doing If so, this is so eazy to do. Otherwise, we could add it directly to the webpack config. |
This is incredibly nice 😄 |
https://www.npmjs.com/package/babel-plugin-transform-react-jsx-source
https://github.com/zeit/next.js/blob/dbecc2a701a79b2d32d9b1ef176b7952953435cc/server/build/babel/preset.js
h/t @gaearon for the pro-tip
The text was updated successfully, but these errors were encountered: