Expand description

CSS module exports.

CSS modules are a way of locally scoping names in a CSS file. This includes class names, ids, keyframe animation names, and any other places where the CustomIdent type is used.

CSS modules can be enabled using the css_modules option when parsing a style sheet. When the style sheet is printed, hashes will be added to any declared names, and references to those names will be updated accordingly. A map of the original names to compiled (hashed) names will be returned.


Configuration for CSS modules.

An exported value from a CSS module.

A CSS modules class name pattern.


A referenced name within a CSS module, e.g. via the composes property.

An error that occurred while parsing a CSS modules name pattern.

A segment in a CSS modules class name pattern.

Type Definitions

A map of exported names to values.

A map of placeholders to references.