@bobfrankston/rmfmail 1.1.6 → 1.1.7

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.
@@ -105,6 +105,18 @@ const shared = {
105
105
  splitting: false,
106
106
  minify: false,
107
107
  logLevel: "info",
108
+ // .wasm files are inlined as base64 data URLs so the runtime can
109
+ // decode → Uint8Array → pass as initSqlJs({ wasmBinary }), bypassing
110
+ // sql.js's fetch(...) of the .wasm. Android WebView refuses to
111
+ // compile WASM fetched from file:// (even with AllowFileAccess /
112
+ // AllowUniversalAccess set — the WebAssembly compiler requires
113
+ // content-type:application/wasm which file:// doesn't supply, AND
114
+ // ArrayBuffer-fallback fetch also fails). Bob 2026-05-14 v1.1.6.1
115
+ // logit: "wasm streaming compile failed → fallback ArrayBuffer
116
+ // instantiation → both async and sync fetching of the wasm failed".
117
+ // Embedding makes the bundle larger (~700 KB → ~933 KB base64) but
118
+ // eliminates the runtime fetch and works on every platform.
119
+ loader: { ".wasm": "binary" },
108
120
  };
109
121
 
110
122
  async function buildAll() {