From 40009ebc94e90432538e362421abf4cc15e94c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 16 Oct 2022 15:03:38 +0200 Subject: fix(npm): disable loading native module for "fsevents" package (#16273) Currently causes a hang in Vite, disable this one specific package as remaining tests for NAPI in various modules work fine. --- ext/node/02_require.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext') diff --git a/ext/node/02_require.js b/ext/node/02_require.js index e55b788e9..489c08779 100644 --- a/ext/node/02_require.js +++ b/ext/node/02_require.js @@ -773,6 +773,9 @@ // Native extension for .node Module._extensions[".node"] = function (module, filename) { + if (filename.endsWith("fsevents.node")) { + throw new Error("Using fsevents module is currently not supported"); + } module.exports = ops.op_napi_open(filename); }; -- cgit v1.2.3