Current behavior:
If you set the /** @jsx jsx */ as instructed in the docs, and then try to use a React Fragment, you get the following error:
transform-react-jsx: pragma has been set but pragmaFrag has not been set
To reproduce:
npm create react-app pragma-issuenpm install @emotion/core/** @jsx jsx */ and then import {jsx} from '@emotion/core' to src/index.jsnpm run buildYou'll get the error.
Add /** @jsxFrag React.Fragment */ to the top of the file and the error goes away.
Expected behavior:
This is a new error. Maybe it's something that babel can fix so we don't have to add /** @jsxFrag React.Fragment */ to every file...
Environment information:
react version: latestemotion version: latestJust checked and babel's restoring the original behavior: https://twitter.com/existentialism/status/1242180403928195075
Most helpful comment
Just checked and babel's restoring the original behavior: https://twitter.com/existentialism/status/1242180403928195075