Skip to content

Support ESM import/export in config files. #6072

@jdalton

Description

@jdalton

One of the things I've noticed while writing ESM code is that I reach for it all the time, even when writing webpack.config.js files. It would be rad if webpack 4 used something like @std/esm behind the scenes to load its config files. In addition to CJS, this would enable support for ESM import, export, dynamic import, and import.meta with config files across Node versions. Thoughts?

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