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
|`classnameTransform`|`asIs`| See [`classnameTransform`](#classnameTransform) below. |
104
+
|`customMatcher`|`"\\.module\\.(c\|le\|sa\|sc)ss$"`| Changes the file extensions that this plugin processes. |
105
+
|`customRenderer`|`false`| See [`customRenderer`](#customRenderer) below. |
106
+
|`customTemplate`|`false`| See [`customTemplate`](#customTemplate) below. |
107
+
|`goToDefinition`|`false`| Enables jump to definition. See [`goToDefinition`](#goToDefinition) below.|
108
+
|`noUncheckedIndexedAccess`|`false`| Enable for compatibility with TypeScript's `noUncheckedIndexedAccess`. |
109
+
|`namedExports`|`true`| Enables named exports for compatible classnames. |
110
+
|`dotenvOptions`|`{}`| Provides options for [`dotenv`](https://github.com/motdotla/dotenv#options). |
111
+
|`postcssOptions`|`{}`| See [`postcssOptions`](#postcssOptions) below. |
112
+
|`rendererOptions`|`{}`| See [`rendererOptions`](#rendererOptions) below. |
113
113
114
114
```json
115
115
{
@@ -199,7 +199,7 @@ The `classes` object represents all the classnames extracted from the CSS Module
199
199
200
200
This allows an editor like Visual Studio Code to go to a classname's definition (file and line).
201
201
202
-
This is experimental, and only works with Sass (for now) and may not always work as expected.
202
+
This is experimental, and may not always work as expected. It currently supports CSS/PostCSS, Less, and Sass. Please raise an issue if you find something isn't working.
exports[`helpers / cssSnapshots with goToDefinition enabled with Less should return a line-accurate dts file 1`] =`
869
+
"export let nestedClassParent: string;export let childClass: string;export let selectorBlue: string;export let selectorGreen: string;export let selectorRed: string;export let column1: string;export let column2: string;export let column3: string;export let column4: string;
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
export let colorSet: string;
899
+
900
+
901
+
902
+
"
903
+
`;
904
+
905
+
exports[`helpers / cssSnapshots with goToDefinition enabled with Less should return an object with classes, css, and a source map 1`] =`
0 commit comments