/* a.module.css */
.foo {
composes: bar from "./b.module.css";
}
/* b.module.css */
.bar {
color: blue;
}
happy-css-modules interprets that the classes a and b (internally called "token") are exported from a.module.css. Then happy-css-modules generates .d.ts like this
Assume you have the following CSS Modules file
happy-css-modules interprets that the classes
a
andb
(internally called "token") are exported from a.module.css. Then happy-css-modules generates .d.ts like thisBut this is wrong: the css-loader treats only
a
tokens from a.module.css as if they were exported.So we decided to change the behavior of happy-css-modules, so that it generates .d.ts like this