Invalid mailing list, you should fill issue in Node.js repository. https://github.com/nodejs/node/issues
On Wed, Mar 28, 2018 at 7:18 PM, Sebastian Malton <[email protected]> wrote: > With really big projects I find it is useful to do the following (it is in > node but the sentiment is still there) > > > ``` > global.rootRequire = function (path) { > require(require('path').resolve(__dirname, path)); > } > ``` > > As moving towards import/export is a good thing I was wondering if this > would be possible? > > Question: how to show that this is wanted? > Question: how do we say what the root is? > > > For question 1 it could be just the last thing that is searched or use > import.root > > For question 2 that could be a config something or root is based on the > first file ran > > Sebastian Malton > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

