@gjsify/nativescript-vite 0.64.52 → 0.64.53
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/README.md +10 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -96,6 +96,16 @@ The same declaration under `gjsify build --app nativescript` is `nativescript.gi
|
|
|
96
96
|
|
|
97
97
|
What a namespace can resolve to is bounded by the pinned Android sysroot: a namespace whose backing library or typelib the sysroot does not carry fails the AAR build naming what is missing, rather than shipping a typelib that dies in `g_module_open`.
|
|
98
98
|
|
|
99
|
+
## Real Gio / GLib beside the widget renderer
|
|
100
|
+
|
|
101
|
+
Under `giRenderer: true`, `gi://Gio` and `gi://GLib` are the renderer's deliberately sparse subset (no `Gio.SocketClient`, no `GLib.get_home_dir`). Non-widget code on real GObject opts into the real namespaces with `giReal`; it needs `@gjsify/node-gi` as an app dependency and no custom plugin:
|
|
102
|
+
|
|
103
|
+
```ts
|
|
104
|
+
export default defineNativescriptConfig({ giRenderer: true, giReal: ['Gio', 'GLib'] });
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
A namespace listed in `giReal` is answered by `requireGi` for every importer, the renderer's own ports included — list only what the whole app can take real. `Gtk`/`Adw` stay the renderer's.
|
|
108
|
+
|
|
99
109
|
## Audio-context note
|
|
100
110
|
|
|
101
111
|
`@nativescript/canvas` transitively pulls a Web-Audio module that references surface a canvas/WebGL app never executes. If your app only does 2D/WebGL rendering, mark it `external` via the composable second argument so it stays out of the bundle:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/nativescript-vite",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.53",
|
|
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",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
],
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@gjsify/adwaita-core": "0.64.
|
|
43
|
-
"@gjsify/vite-plugin-gjsify": "0.64.
|
|
42
|
+
"@gjsify/adwaita-core": "0.64.53",
|
|
43
|
+
"@gjsify/vite-plugin-gjsify": "0.64.53",
|
|
44
44
|
"postcss-nesting": "^13.0.2",
|
|
45
45
|
"postcss-selector-parser": "^7.1.0"
|
|
46
46
|
},
|