Skip to content

import cannot be called from a module #19

@letorbi

Description

@letorbi

Firefox 59 throws an error when an ES6 module is loaded via:

import * as foo from 'fooModule';

This seems to be due to the fact that import statements are only allowed on the top-level of a script, but the module-code loaded by Tarp.require is wrapped into a function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestversion 2Postponed to version 2

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions