Skip to content

Conversation

@alwaysalearner1234
Copy link

This PR improves the css-loader documentation by clarifying the behavior of the
esModule option and explaining when it should be enabled or disabled.

The goal is to make the option easier to understand for new users working with
modern JavaScript setups.

Added information about ES module syntax and its benefits.
Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use and import and require and set esModule to any value, tree shaking works for ES modules and CommonJS moduls (not all cases, but this covered)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants