import-cost icon indicating copy to clipboard operation
import-cost copied to clipboard

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

Results 19 import-cost issues
Sort by recently updated
recently updated
newest added

The problem is if we have a `ts` file in our application and if we want to compile it to a `js` file (using `tsc` command) the following exception occurs....

The plugin appears to do nothing in the latest version of PHP Storm (PS-221.5080.224) Simple repro: ```sh mkdir /tmp/repro cd /tmp/repro yarn add axios echo -e "import axios from \"axios\";\n\naxios.get('...');"...

ImportCost version: 1.0.8.212 WebStorm 2021.2.3 Build #WS-212.5457.55, built on October 18, 2021 Runtime version: 11.0.12+7-b1504.40 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.0.1 GC: G1 Young Generation,...

material-ui: v3.9.2 import cost: v1.0.7.1 Very interesting plugin! Can you please explain how are calculating the size? I compared the result with 'webpack-bundle-analyzer' and got different results. For example: Dialog...

I'm leveraging yarn workspaces and lerna in one of my projects and it'd be nice to know the import cost of linked, local packages. The packages are linked locally using...

``` java.lang.IndexOutOfBoundsException: Wrong offset: 200. Should be in range: [0, 154] at com.intellij.openapi.editor.impl.LineSet.findLineIndex(LineSet.java:165) at com.intellij.openapi.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:1008) at com.github.denofevil.importCost.LanguageService$processImports$1$1.visitES6ImportDeclaration(LanguageService.kt:137) at com.intellij.lang.ecmascript6.psi.impl.ES6ImportDeclarationImpl.accept(ES6ImportDeclarationImpl.java:41) at com.intellij.psi.PsiWalkingState.visit(PsiWalkingState.java:67) at com.intellij.psi.PsiWalkingState.visit(PsiWalkingState.java:24) at com.intellij.util.WalkingState.walkChildren(WalkingState.java:62) at com.intellij.util.WalkingState.elementStarted(WalkingState.java:49) at com.intellij.psi.PsiWalkingState.elementStarted(PsiWalkingState.java:76) at...

```js const DatePicker = React.lazy(() => import("react-datepicker")) ```

Just installed the plugin and the IDE (WebStorm 2019.3.3) immediately signaled about the following exceptions: 1. > kotlin.KotlinNullPointerException at com.github.denofevil.importCost.LanguageService$createListener$1.documentChanged(LanguageService.kt:94) at com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:899) at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:803) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:668) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:615) at com.intellij.psi.impl.PsiToDocumentSynchronizer.doCommitTransaction(PsiToDocumentSynchronizer.java:270)...

I have attached an error log below. I really don't know what the plugin is trying to do with those vtl files in my project to be honest and why...

This plugin is using a lot of CPU and almost 3GB of RAM: ![image](https://user-images.githubusercontent.com/1271688/35061764-78f0cd08-fbc2-11e7-9f99-9e3edc765e12.png) I am running phpstorm 2017.3