diff --git a/both_webgpu/both_node.mjs b/both_webgpu/both_node.mjs index b3a3e4f..301c3e2 100644 --- a/both_webgpu/both_node.mjs +++ b/both_webgpu/both_node.mjs @@ -2,7 +2,7 @@ // Loading a .node file into a recent version of Node is ... challenging // https://stackoverflow.com/questions/77913169/loading-native-node-addons-from-es-module -import { createRequire } from "module"; +import { createRequire } from "node:module"; const require = createRequire(import.meta.url); const dawn = require("../../../src/dawn-build/dawn.node"); Object.assign(globalThis, dawn.globals); // Provides constants like GPUBufferUsage.MAP_READ