nitropack-nightly 2.11.10-20250411-093402.adfc4562 → 2.11.10-20250422-232522.a159742c
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/meta/index.mjs
CHANGED
package/dist/rollup/index.mjs
CHANGED
|
@@ -1129,9 +1129,13 @@ function handlersMeta(nitro) {
|
|
|
1129
1129
|
return virtualPrefix + resolved.id;
|
|
1130
1130
|
}
|
|
1131
1131
|
},
|
|
1132
|
-
load(id) {
|
|
1132
|
+
async load(id) {
|
|
1133
1133
|
if (id.startsWith(virtualPrefix)) {
|
|
1134
1134
|
const fullPath = id.slice(virtualPrefix.length);
|
|
1135
|
+
if (fullPath.startsWith("\0")) {
|
|
1136
|
+
const { code } = await this.load({ id: fullPath });
|
|
1137
|
+
return code;
|
|
1138
|
+
}
|
|
1135
1139
|
return readFile(fullPath, { encoding: "utf8" });
|
|
1136
1140
|
}
|
|
1137
1141
|
},
|
package/package.json
CHANGED