Troubles with babel
Closed this issue · 2 comments
qfox commented
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:
})(undefined); // oops ;-(
Can we fix that somehow?
Ref: https://babeljs.io/docs/faq/#why-is-this-being-remapped-to-undefined-
narqo commented
👍