Need help with import-cost?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

denofevil
210 Stars 4 Forks Apache License 2.0 54 Commits 12 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 44,634
code-ed...
intelli...
intelli...
Groovy
17 commits
# 91,658
Svelte
intelli...
phpstor...
code-ed...
15 commits
# 94,368
lightbo...
HTML
PHP
Laravel
3 commits
# 36,886
kotlin-...
react-r...
ESLint
ecmascr...
2 commits
# 363,800
vscode
perfmat...
Webpack
HTML
1 commit
# 195,991
sketch-...
Sketch
umi
Shell
1 commit

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.