@gjsify/rolldown-plugin-gjsify 0.20.0 → 0.21.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/app/node.js +9 -1
- package/package.json +7 -7
package/lib/app/node.js
CHANGED
|
@@ -263,7 +263,15 @@ export const setupForNode = async (input) => {
|
|
|
263
263
|
// bundles. Same plugin the gjs/browser targets compose.
|
|
264
264
|
blueprintPlugin(),
|
|
265
265
|
deepkitPlugin({ reflection: input.pluginOptions.reflection }),
|
|
266
|
-
|
|
266
|
+
// CSS-as-string. For a node-gi build (the reverse bridge runs REAL GTK on
|
|
267
|
+
// Node — `nodeGiGlobalsInject`, the same signal that keeps `@girs/*` bodies
|
|
268
|
+
// above), lower the CSS to GTK 4's subset with `firefox: 60 << 16` — exactly
|
|
269
|
+
// as `--app gjs` does — so modern authoring (nesting, `&`, …) is FLATTENED
|
|
270
|
+
// before it reaches `Gtk.CssProvider.load_from_string`. Without this GTK 4's
|
|
271
|
+
// CSS parser rejects nested rules at runtime ("Expected ';'/an identifier"
|
|
272
|
+
// theme-parser warnings, styles silently dropped — the Learn6502 app-gnome
|
|
273
|
+
// symptom). A plain-Node bundle (no node-gi) keeps the CSS pristine.
|
|
274
|
+
cssAsStringPlugin(input.pluginOptions.nodeGiGlobalsInject ? { targets: { firefox: 60 << 16 } } : {}),
|
|
267
275
|
nodeModulesPathRewritePlugin({ bundleDir }),
|
|
268
276
|
];
|
|
269
277
|
return { options, plugins };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/rolldown-plugin-gjsify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Rolldown / Rollup / Vite plugin orchestrator for GJS, Node, and Browser targets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
],
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@gjsify/console": "^0.
|
|
59
|
-
"@gjsify/resolve-npm": "^0.
|
|
60
|
-
"@gjsify/rolldown-plugin-deepkit": "^0.
|
|
61
|
-
"@gjsify/rolldown-plugin-pnp": "^0.
|
|
62
|
-
"@gjsify/vite-plugin-blueprint": "^0.
|
|
58
|
+
"@gjsify/console": "^0.21.0",
|
|
59
|
+
"@gjsify/resolve-npm": "^0.21.0",
|
|
60
|
+
"@gjsify/rolldown-plugin-deepkit": "^0.21.0",
|
|
61
|
+
"@gjsify/rolldown-plugin-pnp": "^0.21.0",
|
|
62
|
+
"@gjsify/vite-plugin-blueprint": "^0.21.0",
|
|
63
63
|
"@rollup/pluginutils": "^5.4.0",
|
|
64
64
|
"acorn": "^8.17.0",
|
|
65
65
|
"acorn-walk": "^8.3.5",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"sass": "^1.101.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@gjsify/lightningcss-native": "^0.
|
|
71
|
+
"@gjsify/lightningcss-native": "^0.21.0",
|
|
72
72
|
"rolldown": "^1.1.4"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|