Live data from Hacker News

Node Modules at War: Why CommonJS and ES Modules Can’t Get Along

redfin.engineering

151–152 of 152 posts

Re: Node Modules at War: Why CommonJS and ES Modules Can’t Get Along

#151

Earlier quoted context omitted.

aliases help you use bar from foo.bar and moo.bar. They don't help you with 2 files both of which declare foo.bar

Why would you declare the same type in 2 different files in the same project?

you don't have control of all 3rd party libraries.

Re: Node Modules at War: Why CommonJS and ES Modules Can’t Get Along

#152

Earlier quoted context omitted.

Why would you declare the same type in 2 different files in the same project?

you don't have control of all 3rd party libraries.

Then it's not the same project and the fully qualified type name will be different.
Post reply on HN