Import Cost for WebStorm
This plugin uses the Import Cost module that uses webpack with babili-webpack-plugin to calculate the size of the imported module.
You can read about the original idea behind the Import Cost module in this blog post by Yair Haimovitch.
Installing the plugin
In the IDE open
Preferences | Plugins and click
Browse repositories.... Start typing
Import Cost in the search bar to find the plugin, then click
Or you can download it from the JetBrains Plugins Repository.
Please report any issue with the plugin on GitHub. We welcome your pull requests.