Skip to content

Babel v8 support #452

Description

@birdofpreyru

It looks like with Babel v8 this plugin does not work for dynamic imports, because of this AST change https://babeljs.io/docs/v8-migration-api#javascript-nodes

Just adding ImportExpression to the match pattern here

'ImportDeclaration|ExportDeclaration': transformImport,
fixes it for the case where I bumped into it, but I guess a proper look is necessary, what the update for Babel v8 should be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions