mirror of
https://github.com/coder/code-server.git
synced 2025-07-31 05:54:15 +08:00
Use nbin in forked processes
This commit is contained in:
9
scripts/nbin-loader.js
Normal file
9
scripts/nbin-loader.js
Normal file
@ -0,0 +1,9 @@
|
||||
if (!global.NBIN_LOADED) {
|
||||
try {
|
||||
const nbin = require("nbin");
|
||||
nbin.shimNativeFs("{{ROOT_PATH}}");
|
||||
global.NBIN_LOADED = true;
|
||||
} catch (error) {
|
||||
console.log("Not in the binary");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user