From dc7745e7563262cf6c2da1df838b40fe80fee67c Mon Sep 17 00:00:00 2001 From: John Owens Date: Tue, 5 Nov 2024 09:42:12 -0800 Subject: [PATCH] qualified import --- both_webgpu/both_node.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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