News for hackers. Stuff that matters.
Re:If you write JavaScript tools or libraries, bundle your c... by exogen on Wednesday March 23, 2016 @08:20PM (#11349554)
FooBarComponent shouldn't have been packaged that way (it can include such a dist file for some people to use, but the npm package shouldn't export that). The typical way is for it to not include React as a `dependency` at all but a `peerDependency`. Then everything will be importing the same instance.
Re:If you write JavaScript tools or libraries, bundle your c... by joeframbach on Wednesday March 23, 2016 @08:34PM (#11349630)
> (it can include such a dist file for some people to use, but the npm package shouldn't export that)

I think that is exactly what the article is suggesting we do.