Urara-Blog/node_modules/.pnpm-store/v3/files/7c/c0c8daf422abfc5303ac1a6aa99d184e83cd2edc7c478a7aea82f792b24fef0662cef6d4b86a7ba56b58b48a9ec3ec8dd9c0178c9deaedaf386fad8dabf100
2022-08-14 01:14:53 +08:00

25 lines
661 B
Text

"use strict";
// Note: This file is replaced with "read-wasm-browser.js" when this module is
// bundled with a packager that takes package.json#browser fields into account.
const fs = require("fs");
const path = require("path");
module.exports = function readWasm() {
return new Promise((resolve, reject) => {
const wasmPath = path.join(__dirname, "mappings.wasm");
fs.readFile(wasmPath, null, (error, data) => {
if (error) {
reject(error);
return;
}
resolve(data.buffer);
});
});
};
module.exports.initialize = _ => {
console.debug("SourceMapConsumer.initialize is a no-op when running in node.js");
};