import-cost

by denofevil

denofevil / import-cost

Displays the import size of the package you are importing inside the IJ platform products

207 Stars 4 Forks Last release: Not found Apache License 2.0 52 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Import Cost for WebStorm

This plugin displays the size of the imported JavaScript package right in the editor. It can be installed in WebStorm, IntelliJ IDEA Ultimate, PhpStorm, PyCharm Pro, and RubyMine v2017.2 and above.

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
Install
.

Or you can download it from the JetBrains Plugins Repository.

Contributing

Please report any issue with the plugin on GitHub. We welcome your pull requests.

The plugin contains a simple JavaScript service that communicates with the Import Cost JavaScript module. All the IDE API calls are written in Kotlin. Check out the IntelliJ Platform SDK Documentation to learn more about plugin development from IntelliJ Platform.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.