@csslit/typescript-plugin
v0.0.13
Published
Enables the csslit VS Code extension to support additional file formats.
Maintainers
Readme
@csslit/typescript-plugin
A TypeScript server plugin used by the
csslit VS Code extension
to locate csslit css / css.global template literals.
When you need it
Install this package for the csslit VS Code extension to handle .tsrx, .vue, and .mdx files.
Add it to your tsconfig.json, listed before that language's own TypeScript plugin, so csslit
runs closest to the language service and the other plugin maps its results back to accurate
locations in your file:
{
"compilerOptions": {
"plugins": [{ "name": "@csslit/typescript-plugin" }, { "name": "@tsrx/typescript-plugin" }],
},
}.js, .jsx, .ts, and .tsx files do not need this extra project setup, so React, Solid, Vue
JSX, Angular, and other frameworks work out of the box.
Use the workspace TypeScript version (the classic tsserver); mapped-language support is not
available under TypeScript Native Preview.
See the csslit project README for the full setup.
