Skip to content

Unexpected token when using import() #493

@MatTheCat

Description

@MatTheCat

I'm submitting a bug report

Webpack Version:
3.3.0

Babel Core Version:
6.25.0

Babel Loader Version:
7.1.1

Please tell us about your environment:
Linux

Current behavior:
Using import function result in

Module build failed: SyntaxError: Unexpected token, expected {

Expected/desired behavior:
Letting webpack handle this.

I read somewhere modules should be disabled for babel, if that's the case I did not found how. Any insight?

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