nitro-nightly 3.0.1-20251211-173432-d37caecd → 3.0.1-20251212-084012-f220bbfb

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.
@@ -13,6 +13,7 @@ function resolveNitroPath(path, nitroOptions, base) {
13
13
  if (typeof path !== "string") throw new TypeError("Invalid path: " + path);
14
14
  path = _compilePathTemplate(path)(nitroOptions);
15
15
  for (const base$1 in nitroOptions.alias) if (path.startsWith(base$1)) path = nitroOptions.alias[base$1] + path.slice(base$1.length);
16
+ if (/^[#\u0000]/.test(path)) return path;
16
17
  return resolve(base || nitroOptions.rootDir, path);
17
18
  }
18
19
  function _compilePathTemplate(contents) {
@@ -705,7 +705,11 @@ function routeMeta(nitro) {
705
705
  load: {
706
706
  filter: { id: /* @__PURE__ */ new RegExp(`^${escapeRegExp(PREFIX$2)}`) },
707
707
  handler(id) {
708
- if (id.startsWith(PREFIX$2)) return readFile(id.slice(18), { encoding: "utf8" });
708
+ if (id.startsWith(PREFIX$2)) {
709
+ const fullPath = id.slice(18);
710
+ if (isAbsolute(fullPath)) return readFile(fullPath, { encoding: "utf8" });
711
+ else return "export default undefined;";
712
+ }
709
713
  }
710
714
  },
711
715
  transform: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.0.1-20251211-173432-d37caecd",
3
+ "version": "3.0.1-20251212-084012-f220bbfb",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",