WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/wasm-sync/WebAssemblyInInitialChunkError.js
@@ -12,6 +12,7 @@
/** @typedef {import("../RequestShortener")} RequestShortener */
/**
 * Gets initial module chains.
 * @param {Module} module module to get chains from
 * @param {ModuleGraph} moduleGraph the module graph
 * @param {ChunkGraph} chunkGraph the chunk graph
@@ -84,6 +85,7 @@
module.exports = class WebAssemblyInInitialChunkError extends WebpackError {
   /**
    * Creates an instance of WebAssemblyInInitialChunkError.
    * @param {Module} module WASM module
    * @param {ModuleGraph} moduleGraph the module graph
    * @param {ChunkGraph} chunkGraph the chunk graph
@@ -102,6 +104,8 @@
${moduleChains.map((s) => `* ${s}`).join("\n")}`;
      super(message);
      /** @type {string} */
      this.name = "WebAssemblyInInitialChunkError";
      this.hideStack = true;
      this.module = module;