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 f49e1b8 commit 7072a2aCopy full SHA for 7072a2a
packages/language-core/lib/utils/ts.ts
@@ -174,7 +174,14 @@ function getPartialVueCompilerOptions(
174
const resolvedPath = resolvePath(pluginPath);
175
if (resolvedPath) {
176
const plugin = require(resolvedPath);
177
- plugin.__moduleName = pluginPath;
+ if (Array.isArray(plugin)) {
178
+ for (let i = 0; i < plugin.length; i++) {
179
+ plugin[i].__moduleName = `${pluginPath} (${i})`;
180
+ }
181
182
+ else {
183
+ plugin.__moduleName = pluginPath;
184
185
return plugin;
186
}
187
else {
0 commit comments