typescript-plugin-css-modules
typescript-plugin-css-modules copied to clipboard
A TypeScript language service plugin providing support for CSS Modules.
Some features are not working with the new css-loader@7 import syntax: `import * as style from "./style.css";` https://github.com/webpack-contrib/css-loader/releases/tag/v7.0.0 I'm aware of the option to restore v6 behavior, but supporting this...
I'm using Vite (React+TypeScript template) and try to set up typed import CSS Modules. But I can't import any exactly class test.module.css ```css .testCssClass { color: greenyellow; } ``` When...
**Is your feature request related to a problem? Please describe.** I'm trying to import an SCSS package via a `pkg:` URL (https://sass-lang.com/documentation/at-rules/use/#pkg-ur-ls): ```scss @use 'pkg:@my-package/scss'; ``` Currently this plugin doesn't...
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8. Changelog Sourced from nanoid's changelog. 3.3.8 Fixed a way to break Nano ID by passing non-integer size (by @myndzi). Commits 3044cd5 Release 3.3.8 version...
if using @import at a css module file, type is not being inferred from the original file. we get the type of {}, example:
fix: resolveModuleNameLiterals Affects TS services Fixes #271 、Fixes #272