Shopify / sprockets-commoner

Use Babel in Sprockets to compile JavaScript modules for the browser
MIT License
182 stars 22 forks source link

Support ExecJS globals #62

Closed perezperret closed 7 years ago

perezperret commented 7 years ago

window is not allowed in ExecJS, so what I'm trying to do is alias window only if it exists, otherwise, alias this which I think in ExecJS refers to the global names, I'm opening the request to discuss this, but I understand the solution is clunky. This addresses #61

bouk commented 7 years ago

I'll make a PR to address this shortly