diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-10-16 15:03:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-16 15:03:38 +0200 |
commit | 40009ebc94e90432538e362421abf4cc15e94c39 (patch) | |
tree | 22918f2934fac74282e9e18c98f8db64aca86457 | |
parent | edaba4d06bd4c218b0217d32197b6e93300c8845 (diff) |
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.
-rw-r--r-- | ext/node/02_require.js | 3 |
1 files changed, 3 insertions, 0 deletions
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); }; |