We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f53b3c commit c10d0e7Copy full SHA for c10d0e7
src/core/resolvers/antdv.ts
@@ -151,6 +151,12 @@ const matchComponents: IMatcher[] = [
151
]
152
153
export interface AntDesignVueResolverOptions {
154
+ /**
155
+ * exclude components that do not require automatic import
156
+ *
157
+ * @default []
158
+ */
159
+ exclude?: string[]
160
/**
161
* import style along with components
162
*
@@ -230,7 +236,7 @@ export function AntDesignVueResolver(options: AntDesignVueResolverOptions = {}):
230
236
}
231
237
232
238
233
- if (name.match(/^A[A-Z]/)) {
239
+ if (name.match(/^A[A-Z]/) && !options?.exclude?.includes(name)) {
234
240
const importName = name.slice(1)
235
241
return {
242
importName,
0 commit comments