Closed qfox closed 9 years ago
We have to:
require('babel/register'); require('desktop.bundles/main-app/main-app.js');
But, after babelifying code of ym we got undefined instead of this in global context because of new spec. The last line with this becomes:
ym
undefined
this
})(undefined); // oops ;-(
Can we fix that somehow?
Ref: https://babeljs.io/docs/faq/#why-is-this-being-remapped-to-undefined-
:+1:
@dfilatov Thanks for publishing!
We have to:
But, after babelifying code of
ym
we gotundefined
instead ofthis
in global context because of new spec. The last line withthis
becomes:Can we fix that somehow?
Ref: https://babeljs.io/docs/faq/#why-is-this-being-remapped-to-undefined-