Open frisbee09 opened 5 years ago
👍 We are seeing the same issue
Same issue with version 1.10.6, everything works with 1.10.5. .babelrc content:
{
"presets": ["@babel/env"],
"plugins": [
[
"babel-plugin-styled-components",
{
"minify": true,
"transpileTemplateLiterals": true,
"fileName": false,
"displayName": true,
"ssr": false
}
]
]
}
Same issue here.
There is a potential fix for you in #261 @ChrisAckerman @AndyBan @ppiyush13
Just updated from
v1.10.0
tov1.10.6
and finding the plugin no longer transforming any of my code. I managed to get it to kick back in by downgrading tov1.10.2
.My snapshots capture this by failing with these kinds of mismatches,
If it helps debug the issue, I can confirm that the
___default
injection appears whenreact-hot-loader/babel
is enabled. Removingreact-hot-loader
from the plugin chain doesn't makebabel-plugin-styled-components@1.10.6
transform any of my code, however.Babel configuration looks like this:
Sorry if this is a bad bug report? I'm not used to opening GitHub issues. Could this be related to
@babel/plugin-proposal-dynamic-import
becoming part of@babel/core
as of v7.5.0?