@gjsify/nativescript-vite 0.26.1 → 0.27.0
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/lib/index.js +4 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -362,7 +362,10 @@ function collectNamedImports(root, spec) {
|
|
|
362
362
|
re.lastIndex = 0;
|
|
363
363
|
while ((m = re.exec(code)) !== null) {
|
|
364
364
|
for (const raw of m[1].split(',')) {
|
|
365
|
-
const imported = raw
|
|
365
|
+
const imported = raw
|
|
366
|
+
.trim()
|
|
367
|
+
.split(/\s+as\s+/)[0]
|
|
368
|
+
?.trim();
|
|
366
369
|
if (imported && /^[A-Za-z_$][\w$]*$/.test(imported))
|
|
367
370
|
names.add(imported);
|
|
368
371
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/nativescript-vite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Vite 8 / Rolldown compatibility + gjsify transforms for building NativeScript apps — composes @nativescript/vite and fixes the pieces Rolldown rejects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"lib"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"clear": "
|
|
19
|
+
"clear": "gjsify clear lib tsconfig.tsbuildinfo",
|
|
20
20
|
"check": "gjsify tsc --noEmit",
|
|
21
21
|
"build": "tsc"
|
|
22
22
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@gjsify/vite-plugin-gjsify": "^0.
|
|
41
|
+
"@gjsify/vite-plugin-gjsify": "^0.27.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@nativescript/canvas": "*",
|