Skip to content

Dynamic import requires module: 'esnext' in Webpack #16820

@olmobrutall

Description

@olmobrutall

Hi guys,

I just switched to using the new dynamic import in my webpack app but I was surprised that all the code was bundled together.

The problem was that I was using module : "commonjs", instead of module: "esnext"" in my tsconfig.json.

I finally found my solution here (and I missed it in the the blogpost)

But is not yet document documented in the handbook neither in the json schema for the VS intellisense.

Keep the great work!

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