@downdraft/engine 0.4.0-alpha.0 → 0.4.1

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,12 +13,13 @@ export const isBun: boolean = typeof (globalThis as any).Bun !== "undefined";
13
13
 
14
14
  /**
15
15
  * True inside a `bun build --compile` binary. In compiled executables
16
- * `Bun.main` is `/$bunfs/root/<entry>` instead of a real filesystem path —
16
+ * `Bun.main` is `/$bunfs/root/<entry>` (`B:\~BUN\root\<entry>` on Windows)
17
+ * instead of a real filesystem path —
17
18
  * this is a global and stays correct even in bundles where a packager has
18
19
  * rewritten a module's own `import.meta.url` to the staged asset tree.
19
20
  */
20
21
  export const isCompiledBinary: boolean =
21
- isBun && /^\/\$bunfs\//.test((globalThis as any).Bun?.main ?? "");
22
+ isBun && /^\/\$bunfs\/|^B:[/\\]~BUN[/\\]/i.test((globalThis as any).Bun?.main ?? "");
22
23
 
23
24
  /**
24
25
  * Dev mode. Resolved from (in priority order):