Skip to content

Commit 899781f

Browse files
committed
docs: update limitation section
1 parent 2058f47 commit 899781f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,11 @@ Due to implementation constraints and technical reasons, css-modules-kit has var
231231

232232
- Sass and Less are not supported.
233233
- 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`.
235237
- 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.
237239
- The specifiers in `@import '<specifier>'` and `@value ... from '<specifier>'` are resolved according to TypeScript's module resolution method.
238240
- This may differ from the resolution methods of bundlers like Turbopack or Vite.
239241
- 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

Comments
 (0)