WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js
@@ -31,6 +31,7 @@
 */
const getAllWasmModules = (moduleGraph, chunkGraph, chunk) => {
   const wasmModules = chunk.getAllAsyncChunks();
   /** @type {Module[]} */
   const array = [];
   for (const chunk of wasmModules) {
      for (const m of chunkGraph.getOrderedChunkModulesIterable(
@@ -67,6 +68,7 @@
   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,
@@ -136,6 +138,7 @@
      }
   }
   /** @type {string[]} */
   let importObject;
   if (mangle) {
      importObject = [
@@ -242,6 +245,7 @@
   }
   /**
    * Generates runtime code for this runtime module.
    * @returns {string | null} runtime code
    */
   generate() {