| | |
| | | */ |
| | | const getAllWasmModules = (moduleGraph, chunkGraph, chunk) => { |
| | | const wasmModules = chunk.getAllAsyncChunks(); |
| | | /** @type {Module[]} */ |
| | | const array = []; |
| | | for (const chunk of wasmModules) { |
| | | for (const m of chunkGraph.getOrderedChunkModulesIterable( |
| | |
| | | const moduleGraph = chunkGraph.moduleGraph; |
| | | /** @type {Map<string, ModuleId>} */ |
| | | const waitForInstances = new Map(); |
| | | /** @type {{ module: string, name: string, value: string }[]} */ |
| | | const properties = []; |
| | | const usedWasmDependencies = WebAssemblyUtils.getUsedDependencies( |
| | | moduleGraph, |
| | |
| | | } |
| | | } |
| | | |
| | | /** @type {string[]} */ |
| | | let importObject; |
| | | if (mangle) { |
| | | importObject = [ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Generates runtime code for this runtime module. |
| | | * @returns {string | null} runtime code |
| | | */ |
| | | generate() { |