Comment Comment by merkaloid For you use case you just have to make JSDOM an external package (assuming you use webpack or rollup) and declare it as a peer dependency of your package parent merkaloid 7 years ago