"use strict";
// patch the internal Emscripten runtime table to pass in Module.canvas as the specialHtmlTarget[0]
// Requires EXPORTED_RUNTIME_METHODS='specialHTMLTargets' in makefile
Object.defineProperty(exports, "__esModule", { value: true });
exports.preRun = void 0;
// @ts-ignore
/** @ignore */
var preRun = function (Module) {
    Module.specialHTMLTargets[0] = Module.canvas;
    // The C++ WebGPU code uses selector "#canvas" in wgpuInstanceCreateSurface.
    // Register Module.canvas under that key so Emscripten's findCanvasEventTarget can resolve it.
    Module.specialHTMLTargets["#canvas"] = Module.canvas;
};
exports.preRun = preRun;
