-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
Hello!
For background detail see: rollup/rollup#2523
Given an AMD module with a top level this for example: var self = this
when this is converted to an ES6 module, it should be transpiled var self = window because as per: http://exploringjs.com/es6/ch_modules.html#_browsers-scripts-versus-modules a top level this equates to window but in the ES6 world a top level this = undefined. At the moment, after the conversion to ES6 the top level this is currently having its value changed from window to undefined breaking scripts..
Reactions are currently unavailable