Hi everyone.
I've noticed that we register ts by calling require.extensions. But isn't it already deprecated since v0.10.6?
May be a fool question. If I missed something, please tell me :-)
Yes. There鈥檚 no other way to make it work.
Why not use Module._extensions [ext]?
@ahonn

@blakeembrey But require.extensions already deprecated
@ahonn They're literally the same object, they're both deprecated. Just because one isn't in the docs doesn't mean it's not deprecated, it means it was never meant to be used to start with. That's what _ prefixes mean, they aren't meant for public use.
Edit: If you find it in documentation un-deprecated feel free to let me know.
Most helpful comment
@ahonn They're literally the same object, they're both deprecated. Just because one isn't in the docs doesn't mean it's not deprecated, it means it was never meant to be used to start with. That's what
_prefixes mean, they aren't meant for public use.Edit: If you find it in documentation un-deprecated feel free to let me know.