@gjsify/rolldown-plugin-gjsify 0.64.2-next.252 → 0.64.2-next.253
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/plugins/text-loader.js +6 -1
- package/package.json +11 -11
|
@@ -34,6 +34,8 @@ const MIME_BY_EXT = {
|
|
|
34
34
|
'.tif': 'image/tiff',
|
|
35
35
|
'.wasm': 'application/wasm',
|
|
36
36
|
};
|
|
37
|
+
/** Owned by `gresourcePlugin`, whatever `loaders` says about `.xml`. */
|
|
38
|
+
const GRESOURCE_SUFFIX = /\.gresource\.xml$/i;
|
|
37
39
|
function mimeForExtension(ext) {
|
|
38
40
|
return MIME_BY_EXT[ext.toLowerCase()] ?? 'application/octet-stream';
|
|
39
41
|
}
|
|
@@ -61,7 +63,10 @@ export function textLoaderPlugin(options = {}) {
|
|
|
61
63
|
return {
|
|
62
64
|
name: 'gjsify-asset-loader',
|
|
63
65
|
async load(id) {
|
|
64
|
-
|
|
66
|
+
// User loaders run before the app presets, so an `".xml": "text"` entry would
|
|
67
|
+
// otherwise hand a `.gresource.xml` import the descriptor's source instead of the
|
|
68
|
+
// compiled bytes `gresourcePlugin` embeds (ADR 0116 § 1).
|
|
69
|
+
if (!filter.test(id) || GRESOURCE_SUFFIX.test(id))
|
|
65
70
|
return null;
|
|
66
71
|
// Determine the extension (lowercase, with leading dot).
|
|
67
72
|
const dotIdx = id.lastIndexOf('.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/rolldown-plugin-gjsify",
|
|
3
|
-
"version": "0.64.2-next.
|
|
3
|
+
"version": "0.64.2-next.253",
|
|
4
4
|
"description": "Rolldown / Rollup / Vite plugin orchestrator for GJS, Node, and Browser targets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
],
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@gjsify/console": "0.64.2-next.
|
|
71
|
-
"@gjsify/resolve-npm": "0.64.2-next.
|
|
72
|
-
"@gjsify/rolldown-plugin-deepkit": "0.64.2-next.
|
|
73
|
-
"@gjsify/rolldown-plugin-pnp": "0.64.2-next.
|
|
74
|
-
"@gjsify/utils": "0.64.2-next.
|
|
75
|
-
"@gjsify/vite-plugin-blueprint": "0.64.2-next.
|
|
70
|
+
"@gjsify/console": "0.64.2-next.253",
|
|
71
|
+
"@gjsify/resolve-npm": "0.64.2-next.253",
|
|
72
|
+
"@gjsify/rolldown-plugin-deepkit": "0.64.2-next.253",
|
|
73
|
+
"@gjsify/rolldown-plugin-pnp": "0.64.2-next.253",
|
|
74
|
+
"@gjsify/utils": "0.64.2-next.253",
|
|
75
|
+
"@gjsify/vite-plugin-blueprint": "0.64.2-next.253",
|
|
76
76
|
"@rollup/pluginutils": "^5.4.0",
|
|
77
77
|
"acorn": "^8.17.0",
|
|
78
78
|
"acorn-typescript": "^1.4.13",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"sass": "^1.101.0"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@gjsify/lightningcss-native": "0.64.2-next.
|
|
85
|
+
"@gjsify/lightningcss-native": "0.64.2-next.253",
|
|
86
86
|
"rolldown": "^1.1.4"
|
|
87
87
|
},
|
|
88
88
|
"peerDependenciesMeta": {
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@gjsify/cli": "0.64.2-next.
|
|
98
|
-
"@gjsify/unit": "0.64.2-next.
|
|
97
|
+
"@gjsify/cli": "0.64.2-next.253",
|
|
98
|
+
"@gjsify/unit": "0.64.2-next.253",
|
|
99
99
|
"@types/node": "^25.9.2",
|
|
100
100
|
"rolldown": "^1.1.4",
|
|
101
101
|
"typescript": "^6.0.3"
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"win32": "supported"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "84c860498d8dd191285353b116e60aa90d71776c"
|
|
112
112
|
}
|