eyereasoner 18.23.2 → 19.0.0
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/README.md +14 -0
- package/dist/eye.d.ts +1 -1
- package/dist/eye.js +1 -1
- package/dist/lingua.d.ts +1 -1
- package/dist/lingua.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -188,6 +188,20 @@ Github also serves these files with a `gzip` content encoding which compresses t
|
|
|
188
188
|
|
|
189
189
|

|
|
190
190
|
|
|
191
|
+
### Serving Files
|
|
192
|
+
|
|
193
|
+
When self-hosting the bundled files, ensure your server includes `charset=utf-8` in the `Content-Type` header for JavaScript files:
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
Content-Type: text/javascript; charset=utf-8
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Without the charset, WASM streaming instantiation may fail in headless browsers with errors like:
|
|
200
|
+
- Firefox: `CompileError: wasm validation error: at offset 642: byte size mismatch in type section`
|
|
201
|
+
- Chromium: `CompileError: WebAssembly.instantiate(): section was shorter than expected size`
|
|
202
|
+
|
|
203
|
+
Most static file servers (e.g., `express.static()`) set this automatically, but custom streaming handlers using `createReadStream().pipe(res)` may not.
|
|
204
|
+
|
|
191
205
|
### Dynamic imports
|
|
192
206
|
|
|
193
207
|
We also distribute bundles that can be dynamically imported on github pages; for example
|