Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Translate context when importing common JS modules. #31
I have not done enough research on this problem to explain why so I will just start with an example.
import D3 from 'd3'; console.log(D3);
This code throws the error because the document object cannot be found on the this context.
This translator might need to set the global context of the import as the window as opposed to leaving it undefined per es6 modules.