You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,9 +231,11 @@ Due to implementation constraints and technical reasons, css-modules-kit has var
231
231
232
232
- Sass and Less are not supported.
233
233
- If you want to use Sass and Less, please use [happy-css-modules](https://github.com/mizdra/happy-css-modules). Although it does not offer as rich language features as css-modules-kit, it provides basic features such as code completion and Go to Definition.
234
-
- The name of classes, `@value`, and `@keyframes` must be valid JavaScript identifiers.
234
+
- Case conversion for [token](docs/glossary.md#token) names is not supported.
235
+
- For example, if you have a CSS class `.foo-bar`, it will be exported as `styles['foo-bar']`, not `styles.fooBar` or `styles.foo_bar`.
236
+
- The [token](docs/glossary.md#token) names must be valid JavaScript identifiers when `cmkOptions.namedExports` is `true`.
235
237
- For example, `.fooBar` and `.foo_bar` are supported, but `.foo-bar` is not supported.
236
-
-See [#176](https://github.com/mizdra/css-modules-kit/issues/176) for more details.
238
+
-This restriction may be lifted in the future.
237
239
- The specifiers in `@import '<specifier>'` and `@value ... from '<specifier>'` are resolved according to TypeScript's module resolution method.
238
240
- This may differ from the resolution methods of bundlers like Turbopack or Vite.
239
241
- If you want to use import aliases, use [`compilerOptions.paths`](https://www.typescriptlang.org/tsconfig/#paths) or [`imports`](https://nodejs.org/api/packages.html#imports) in `package.json`.
0 commit comments