Skip to content

Evaluate esModule options in webpack loaders #8355

Description

@ianschmitz

css-loader and style-loader now support a esModule option to emit to ESM instead of CJS, which can improve tree shaking/module concatenation in webpack, but I haven't had a chance to see if it's compatible with our other CSS loaders.

file-loader and url-loader now enable esModule by default, but have dropped support for node < 10.13.0.

Let's see if there's any benefit to enabling these in our webpack config.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions