@weapp-vite/volar 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -3
- package/dist/index.mjs +4 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
19
19
|
value: mod,
|
|
20
20
|
enumerable: true
|
|
21
21
|
}) : target, mod));
|
|
@@ -467,8 +467,10 @@ function collectTopLevelBindingNames(sourceFile, tsModule) {
|
|
|
467
467
|
if (tsModule.isImportDeclaration(statement) && statement.importClause) {
|
|
468
468
|
const { importClause } = statement;
|
|
469
469
|
if (importClause.name) bindings.add(importClause.name.text);
|
|
470
|
-
if (importClause.namedBindings)
|
|
471
|
-
|
|
470
|
+
if (importClause.namedBindings) {
|
|
471
|
+
if (tsModule.isNamespaceImport(importClause.namedBindings)) bindings.add(importClause.namedBindings.name.text);
|
|
472
|
+
else for (const element of importClause.namedBindings.elements) bindings.add(element.name.text);
|
|
473
|
+
}
|
|
472
474
|
}
|
|
473
475
|
}
|
|
474
476
|
return bindings;
|
package/dist/index.mjs
CHANGED
|
@@ -443,8 +443,10 @@ function collectTopLevelBindingNames(sourceFile, tsModule) {
|
|
|
443
443
|
if (tsModule.isImportDeclaration(statement) && statement.importClause) {
|
|
444
444
|
const { importClause } = statement;
|
|
445
445
|
if (importClause.name) bindings.add(importClause.name.text);
|
|
446
|
-
if (importClause.namedBindings)
|
|
447
|
-
|
|
446
|
+
if (importClause.namedBindings) {
|
|
447
|
+
if (tsModule.isNamespaceImport(importClause.namedBindings)) bindings.add(importClause.namedBindings.name.text);
|
|
448
|
+
else for (const element of importClause.namedBindings.elements) bindings.add(element.name.text);
|
|
449
|
+
}
|
|
448
450
|
}
|
|
449
451
|
}
|
|
450
452
|
return bindings;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-vite/volar",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "Volar plugin for weapp-vite - Provides IntelliSense and type checking for WeChat mini-program config blocks",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"node": "^20.19.0 || >=22.12.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@weapp-core/schematics": "6.0
|
|
43
|
+
"@weapp-core/schematics": "6.2.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"benchmark": "node --import tsx benchmark/sfc.ts",
|