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:
parent
edaba4d06b
commit
40009ebc94
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue