evanw/esbuild

Specify license on the bundle analyzer for reuse

JReinhold opened this issue · 1 comments

In Storybook we're trying to reduce the friction of decreasing packages' sizes, by making it easier to analyse package's sizes over time.

One angle we're experimenting with, is to surface ESBuild's bundle analysis of all Storybook's packages as part of every PR, to quickly get an overview of the changes and their impact. These results wouldn't be part of any distributions, it would just be used in our internal infrastructure, in our CI and GitHub repository.

However this comment #2926 (comment) by @evanw indicates that the bundle analyzer (being part of the website) and its implementation is not intended for reuses like these.

I'd like to get a clearer picture of the stance around the license and reuse, so we can perhaps include (parts of it) in Storybook's infrastructure. This would probably benefit other package authors as well, we might come up with a generalised way of using it to improve package sizes across the whole ecosystem.

I'm not a legal expert at all, I just want to explore if there are any ways we can use this with good intentions without stepping on anyone's toes.