Uh oh!
There was an error while loading. Please reload this page.
add experimental babel-plugin-macros support - #3675
Conversation
closesreact#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](react#2730 (comment)) and it worked well.
Copied from the linked issue: Ok, so, check this out:
(this would be implemented as part of
So that's pretty rock solid awesome... 😄 Note: that was before the |
omeid
commented
Jan 3, 2018
I understand that it is a massive change but any chance this could land "unsupported" without having to wait for 2.0? Landing it would allow a lot of people to test this actually out in the wild and promote adding macros support to various babel plugins. |
gaearon
commented
Jan 9, 2018
Merged into |
* add experimental babel-plugin-macros support closes#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closes#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closesreact#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](react#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closes#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closesreact#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](react#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closesreact#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](react#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closes#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closes#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closes#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closes#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closes#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closes#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](#2730 (comment)) and it worked well. * Pin the version
* add experimental babel-plugin-macros support closesreact#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](react#2730 (comment)) and it worked well. * Pin the version
Timer
commented
Jan 18, 2018
Support for this has been released in the first v2 alpha version. See #3815 for more details! |
* add experimental babel-plugin-macros support closesreact#2730 This will remain undocumented until the brave have tried it in the wild. **Test Plan:** There's currently no established way to test changes to `babel-preset-react-app`. But I did create [`unmaintained-react-scripts-babel-macros`](https://www.npmjs.com/package/unmaintained-react-scripts-babel-macros) [a while back](react#2730 (comment)) and it worked well. * Pin the version
gaearon
commented
Oct 2, 2018
It shipped in 2.0. |
kentcdodds
commented
Oct 2, 2018
This is just awesome! 🎉 |
such
commented
Oct 2, 2018
Do you have to eject to make it work? |
kentcdodds
commented
Oct 2, 2018
You're probably trying to use an outdated macro. What are you trying to use? |
such
commented
Oct 2, 2018
I'm trying to use https://github.com/leoasis/graphql-tag.macro |
kentcdodds
commented
Oct 2, 2018
Yeah, that needs to be updated to Luckily the upgrade is pretty simple. Pretty much find/replace |
such
commented
Oct 3, 2018
ok thanks! |




closes#2730
This will remain undocumented until the brave have tried it in the wild.
Test Plan:
There's currently no established way to test changes to
babel-preset-react-app. But I did createunmaintained-react-scripts-babel-macrosa while back and it worked well.