code-server/scripts/nbin-shim.js
2019-07-18 18:09:09 -05:00

10 lines
181 B
JavaScript

if (!global.NBIN_LOADED) {
try {
const nbin = require("nbin");
nbin.shimNativeFs("{{ROOT_PATH}}");
global.NBIN_LOADED = true;
} catch (error) {
// Not in the binary.
}
}