[RequireNative] Remove trailing LN
This commit is contained in:
parent
6ae3c0f284
commit
06b35cbc1d
1 changed files with 1 additions and 1 deletions
|
@ -3,4 +3,4 @@
|
||||||
// For Module Updater: get root path for all modules in globalPaths
|
// For Module Updater: get root path for all modules in globalPaths
|
||||||
|
|
||||||
const g = require('module').globalPaths;
|
const g = require('module').globalPaths;
|
||||||
module.exports = (n, e = '') => require(require('path').join(g.reverse().find(x => x.includes(n)) ?? g[0], n, e));
|
module.exports = (n, e = '') => require(require('path').join(g.reverse().find(x => x.includes(n)) ?? g[0], n, e));
|
Loading…
Reference in a new issue