Files
SnowLuma/.pnpm-store/v11/files/07/562edaaade74b0e6242dc5083925c7a386d07df9b07d7b167743ccb09042954e3a04931a05370cbbfefefe033b6cc7d8a81bc49b7af1b8e9ea6b8ca8bb678f
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

24 lines
602 B
Plaintext

"use strict";
let mappingsWasm = null;
module.exports = function readWasm() {
if (typeof mappingsWasm === "string") {
return fetch(mappingsWasm).then(response => response.arrayBuffer());
}
if (mappingsWasm instanceof ArrayBuffer) {
return Promise.resolve(mappingsWasm);
}
throw new Error(
"You must provide the string URL or ArrayBuffer contents " +
"of lib/mappings.wasm by calling " +
"SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) " +
"before using SourceMapConsumer"
);
};
module.exports.initialize = input => {
mappingsWasm = input;
};