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
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,26 @@ Determines whether to generate named exports in the d.ts file instead of a defau
165
165
}
166
166
```
167
167
168
+
### `cmkOptions.prioritizeNamedImports`
169
+
170
+
Type: `boolean`, Default: `false`
171
+
172
+
Whether to prioritize named imports over namespace imports when adding import statements. This option only takes effect when `cmkOptions.namedExports` is `true`.
173
+
174
+
When this option is `true`, `import { button } from '...'` will be added. When this option is `false`, `import button from '...'` will be added.
175
+
176
+
```jsonc
177
+
{
178
+
"compilerOptions": {
179
+
// ...
180
+
},
181
+
"cmkOptions": {
182
+
"namedExports":true,
183
+
"prioritizeNamedImports":true,
184
+
},
185
+
}
186
+
```
187
+
168
188
## Limitations
169
189
170
190
- Sass/Less are not supported to simplify the implementation
0 commit comments