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
217 Stars 5 Forks Apache License 2.0 57 Commits 14 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

# 95,744
Svelte
intelli...
phpstor...
webstor...
18 commits
# 48,573
intelli...
intelli...
Gradle
GraphQL
17 commits
# 107,939
lightbo...
PHP
Laravel
autocom...
3 commits
# 39,377
ESLint
ecmascr...
Webpack
Angular
2 commits
# 351,492
TypeScr...
vscode
perfmat...
Webpack
1 commit
# 282,696
JavaScr...
Kotlin
sketch-...
Sketch
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.