@downdraft/engine 0.4.0 → 0.4.2
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/core/src/platform/runtime.ts +3 -2
- package/dist/.dd-manifest.json +822 -822
- package/dist/core/src/platform/runtime.js +3 -2
- package/dist/modules/html-ui/src/host.js +17 -1
- package/libraries/blitz-ui/native-osr/src/lib.rs +289 -6
- package/libraries/blitz-ui/native-osr/src/mutate.rs +28 -13
- package/modules/html-ui/src/host.ts +13 -1
- package/package.json +2 -2
|
@@ -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>`
|
|
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
|
|
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):
|