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
Choose one: is this a bug report or feature request?
bug
It seems to transpile this in args to undefined, but only if an import is made above it. I tried several, always crashes, if i remove the import, it's fine again ...
Hey @drcmda! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.
I suspect that webpack thought that this was referring here to "top level", but actually it refers to the class' instance. You can file a bug issue on their boards.
Activity
babel-bot commentedon Jan 23, 2018
Hey @drcmda! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.
Andarist commentedon Jan 24, 2018
Could u run
nodein ur project and execute this code?Would be helpful to see a result, Im suspecting this might a webpack issue - would be great to rule this out (or confirm).
drcmda commentedon Jan 24, 2018
@Andarist
Indeed, it returned:
Do you have any idea how webpack (4) could have done this? I thought it's never going to touch code like that ...
If i use
['@babel/preset-env', { modules: false, useBuiltIns: 'usage' }],in my projectthisworks like before, something strange seems to provoke it.Andarist commentedon Jan 24, 2018
@drcmda according to latest announcement webpack:
I suspect that webpack thought that
thiswas referring here to "top level", but actually it refers to the class' instance. You can file a bug issue on their boards.Andarist commentedon Jan 25, 2018
I see you have started rolling ball on webpack's board - going to close this issue then.
drcmda commentedon Jan 25, 2018
@Andarist thanks for your help!