new core modules go under a namespace
Per https://github.com/nodejs/TSC/issues/389#issuecomment-400300064
Do not merge this - this is solely a demonstration of how a namespaced module could exist.
Existing core modules would be aliased, either like this, using symlinks, or in the CJS/ESM loaders.
New modules would live inside lib/@nodejs
, just like current ones live inside lib/
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines