0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

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.
This commit is contained in:
Bartek Iwańczuk 2022-10-16 15:03:38 +02:00 committed by GitHub
parent edaba4d06b
commit 40009ebc94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
};