You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's interesting because it seems to be the opposite bug as babel/babel#12475.
It might be an ordering issue, if the new transform is injecting the dev stuff at a different point in the Babel lifecycle than the old one. In any case, I wouldn't expect an observable behavioral change in a patch release.
To reproduce:
Reproducing repo is here. Clone and run npm it on either of the two commits to observe the two behaviors.
Expected behavior:
Adding development: true to the React preset config should include the dev transforms.
Environment information:
react version: n/a
@emotion/react version: n/a
@emotion/babel-preset-css-prop: 11.0.0
The text was updated successfully, but these errors were encountered:
There's actually a second observable change in the Babel PR, btw. When setting runtime: 'classic', it's now an error to set importSource. Previously, the importSource value was just ignored. You can see the necessary change in the PR I linked. Not sure if this change was intentional?
Current behavior:
This is actually an issue in Babel, but it was caused by babel/babel#12253 and manifests when using the Emotion preset so I decided to file it here.
Given the following Babel config:
And the following source code:
Using
@babel/[email protected]
(and its transitive deps that were available as part of the 7.12.7 Babel release), the code would transpile to:With
@babel/[email protected]
, it transpiles to:It's interesting because it seems to be the opposite bug as babel/babel#12475.
It might be an ordering issue, if the new transform is injecting the dev stuff at a different point in the Babel lifecycle than the old one. In any case, I wouldn't expect an observable behavioral change in a patch release.
To reproduce:
Reproducing repo is here. Clone and run
npm it
on either of the two commits to observe the two behaviors.Expected behavior:
Adding
development: true
to the React preset config should include the dev transforms.Environment information:
react
version: n/a@emotion/react
version: n/a@emotion/babel-preset-css-prop
: 11.0.0The text was updated successfully, but these errors were encountered: