Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Translate context when importing common JS modules. #31

@CrowdHailer

Description

@CrowdHailer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions