Bare Import Cost

1 · Remy Sharp · May 10, 2019, midnight
This post is about import in JavaScript. This post, I'm afraid doesn't have any grand solutions or even semi-grand conclusions. In fact, by way of disclaimer, this is more of a stream of concious thought. In my travels across the web lately, I keep coming across JavaScript libraries whereby the very first line in the "usage" is: import lib from 'awesome-lib'; Except that single, seemingly simple line, carries a lot of hidden work and understanding behind it. So here begins my complaint. But fir...