stream: export consumers and web in parent builtin
cc @nodejs/repl
Fwiw, that's not what I was suggesting. Just expose consumers as a property of stream.
@jasnell Is this what you are suggesting? By the way I added a test to make sure that all current and future modules export their "submodules" if there are any.
It seems to break a few tests.
It seems to break a few tests.
This is because https://github.com/nodejs/node/blob/43e127801425d0ddb1b23b86c3788603d00d6da3/lib/internal/bootstrap/loaders.js#L294 calls the getter and thus triggers the ExperimentalWarning of stream/web.
I don't really know what to do in this case.
Updated to export only stable submodules in their parent builtin.
This needs a rebase.
There are some linter error that needs fixing