-
Notifications
You must be signed in to change notification settings - Fork 75
Typeof transform #69
Comments
Can you provide some more information? What do your |
I am running into the same issue so I'll chime in with those files. I'll note I'm only running into the issue with karma-rollup-preprocessor which has [email protected]
and
|
I've just confirmed that forcing the dep of karma-rollup-preprocessor to the latest resolves the issue |
Sorry for not getting back sooner. I tried to reliably reproduce this problem: what I found out is that the problem relates to the 'lodash-es' package and that the problem disappears when I upgrade the 'rollup' package from '0.26.3' to '0.34.13'. I suggest to close this issue and never look back. |
When I use clipboard produce same error message:
|
I was trying to build a React project with react-router using rollup and hit this bug. I created a minimal reproduction in this gist. I copied the mod.js typeof code from react-routers history dependency. |
Just hit this issue with react-router too. The bundle builds fine but results in an |
I have the same problem My config {
presets: [
[
"env",
{
targets: {
browsers: ["> 5%", "since 2015"]
},
modules: false
}
]
],
runtimeHelpers: true
} |
Closing this as outdated and not actionable due to lack of reproduction case. Feel free to open new issue. |
When I try to transform code with
typeof a === 'symbol'
in it, the output of rollup-plugin-babel becomes erroneous. In the second example below,var typeof = ...
is wrong. I suppose it has to do with https://github.com/rollup/rollup-plugin-babel/blob/master/src/index.js#L43?With
babel
:With
rollup-plugin-babel
:The transform is triggered by https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-typeof-symbol
The text was updated successfully, but these errors were encountered: