2024-09-03 05:51:07 -04:00
|
|
|
diff --git a/pkg/standalone/content_tag.js b/pkg/standalone/content_tag.js
|
2024-11-06 07:29:24 -05:00
|
|
|
index 0a676a08c4aa05d096d402da649bca24ad60cfc1..68cbe90df17b17eba9c232952b037df56df6648b 100644
|
2024-09-03 05:51:07 -04:00
|
|
|
--- a/pkg/standalone/content_tag.js
|
|
|
|
+++ b/pkg/standalone/content_tag.js
|
2024-11-06 07:29:24 -05:00
|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
let wasm;
|
2023-12-14 06:00:36 -05:00
|
|
|
|
|
|
|
+const { TextDecoder, TextEncoder } = require('util');
|
|
|
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
|
|
|
|
|
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
2024-10-03 06:45:11 -04:00
|
|
|
diff --git a/pkg/standalone.js b/pkg/standalone.js
|
|
|
|
index cb50046539df05b41dcc842ffb98e354236f8d26..10eea2962ffd804905d85057bb25d5b30b4d2e11 100644
|
|
|
|
--- a/pkg/standalone.js
|
|
|
|
+++ b/pkg/standalone.js
|
|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
-import init from "./standalone/content_tag.js";
|
|
|
|
+import { initSync } from "./standalone/content_tag.js";
|
|
|
|
+import module from "./standalone/content_tag_bg.wasm";
|
|
|
|
export { Preprocessor } from "./standalone/content_tag.js";
|
|
|
|
|
|
|
|
-await init();
|
|
|
|
+initSync(module);
|
|
|
|
|