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 b10dafa commit f475b23Copy full SHA for f475b23
src/context.ts
@@ -119,8 +119,7 @@ export class Context {
119
if (payload.updates.length)
120
this._server.ws.send(payload)
121
122
- if (this.options.globalComponentsDeclaration)
123
- generateDeclaration(this, this.options.root, this.options.globalComponentsDeclaration)
+ this.generateDeclaration()
124
}
125
126
private updateComponentNameMap() {
@@ -207,6 +206,11 @@ export class Context {
207
206
this._searched = true
208
209
+ generateDeclaration() {
210
+ if (this.options.globalComponentsDeclaration)
211
+ generateDeclaration(this, this.options.root, this.options.globalComponentsDeclaration)
212
+ }
213
+
214
get componentNameMap() {
215
return this._componentNameMap
216
0 commit comments