2023-12-14 05:00:36 -06:00
|
|
|
diff --git a/node_modules/content-tag/pkg/standalone.js b/node_modules/content-tag/pkg/standalone.js
|
2024-02-01 06:00:32 -06:00
|
|
|
index 7be08fc..35777bf 100644
|
2023-12-14 05:00:36 -06:00
|
|
|
--- a/node_modules/content-tag/pkg/standalone.js
|
|
|
|
+++ b/node_modules/content-tag/pkg/standalone.js
|
2024-02-01 06:00:32 -06:00
|
|
|
@@ -1,7 +1,8 @@
|
2023-12-14 05:00:36 -06:00
|
|
|
-import init from "./standalone/content_tag.js";
|
|
|
|
+import { initSync } from "./standalone/content_tag.js";
|
|
|
|
+import module from "./standalone/content_tag_bg.wasm";
|
2024-02-01 06:00:32 -06:00
|
|
|
import { Preprocessor as WasmPreprocessor } from "./standalone/content_tag.js";
|
2023-12-14 05:00:36 -06:00
|
|
|
|
|
|
|
-await init();
|
|
|
|
+initSync(module);
|
|
|
|
|
2024-02-01 06:00:32 -06:00
|
|
|
const defaultOptions = {
|
|
|
|
inline_source_map: false,
|
2023-12-14 05:00:36 -06:00
|
|
|
diff --git a/node_modules/content-tag/pkg/standalone/content_tag.js b/node_modules/content-tag/pkg/standalone/content_tag.js
|
2024-02-02 06:33:29 -06:00
|
|
|
index aaefe00..bb20026 100644
|
2023-12-14 05:00:36 -06:00
|
|
|
--- a/node_modules/content-tag/pkg/standalone/content_tag.js
|
|
|
|
+++ b/node_modules/content-tag/pkg/standalone/content_tag.js
|
|
|
|
@@ -20,6 +20,7 @@ function takeObject(idx) {
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
+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(); };
|