| | |
| | | /** @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 |
| | |
| | | |
| | | 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 |
| | |
| | | ${moduleChains.map((s) => `* ${s}`).join("\n")}`; |
| | | |
| | | super(message); |
| | | |
| | | /** @type {string} */ |
| | | this.name = "WebAssemblyInInitialChunkError"; |
| | | this.hideStack = true; |
| | | this.module = module; |