返回排行榜

wix/import-cost

JavaScriptmarketplace.visualstudio.com/items

displays the import size of the package you are importing inside the code editor

vscodeperformanceperformance-analysisperformance-visualizationwebpackperfmatterswebperf
Star 增长趋势
Star
1.4k
Forks
70
周增长
Issues
64
5001k
2017年7月2020年7月2023年7月2026年7月
制品库npmnpm install import-cost
README

Import Cost Build Status Stand With Ukraine

This extension will display inline in the editor the size of the imported package. The extension utilizes webpack in order to detect the imported size.

Example Image

This project includes implementation of:

Enjoy!

Third-Party Editor Plugin Links

Why & How

We detail the why and how in this blog post: https://citw.dev/posts/import-cost

Developer guidelines

In this project we use npm workspaces for managing the multiple packages.

Getting started

In order to start working all you need to do is:

$ git clone git@github.com:wix/import-cost.git
$ npm install
$ code packages/import-cost
$ code packages/vscode-import-cost

Once VSCode workspaces are open:

  • Hit F5 to run tests in import-cost
  • Hit F5 to run the vscode-import-cost extension in debug mode

Applying changes

Thanks to npm workspaces, we have a symbolic link in the vscode-import-cost node modules folder to the local import-cost, which makes applying changes very easy. You can verify that link exists by running the following command:

$ ls -la packages/vscode-import-cost/node_modules | grep import-cost
lrwxr-xr-x    1 shahar  staff    17 Aug  6 09:38 import-cost -> ../../import-cost

If anything goes wrong and link does not exist, just run the following commands at the root of this project and npm will sort it out:

$ git clean -xdf
$ npm install

After you make any changes to the import-cost node module, don't forget to trigger transpilation in order to see those changes when running the vscode-import-cost extension:

$ npm test

Publishing changes

When you are ready to publish a new version of the extension, you first need to publish a new version of import-cost (unless nothing changed there). This is done by first commiting all your changes, then simply run the following commands:

$ cd packages/import-cost
$ npm version patch | minor | major
$ git commit -a -m "releasing version X.X.X"
$ git push
$ npm publish

Then go ahead and release the extension with almost same steps (except for last one):

$ cd packages/vscode-import-cost
$ npm version patch | minor | major
$ git commit -a -m "releasing version X.X.X"
$ git push
$ vsce publish

Don't forget to update README.md with details of what is new in the released version...

相关仓库
x1xhlol/system-prompts-and-models-of-ai-tools

FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sourced) System Prompts, Internal Tools & AI Models

GNU General Public License v3.0aicursor
142.2k34.8k
coder/code-server

VS Code in the browser

TypeScriptnpmMIT Licensevscodevscode-remote
coder.com
78.5k6.8k
microsoft/monaco-editor

A browser based code editor

JavaScriptnpmMIT Licensemonaco-editorvscode
microsoft.github.io/monaco-editor/
46.4k4.1k
VSCodium/vscodium

binary releases of VS Code without MS branding/telemetry/licensing

ShellMIT Licensevscodeopen-source-licensing
vscodium.com
32.5k1.8k
viatsko/awesome-vscode

🎨 A curated list of delightful VS Code packages and resources.

JavaScriptnpmCreative Commons Zero v1.0 Universalvisual-studiovscode
viatsko.github.io/awesome-vscode/
28.9k1.4k
voideditor/void

TypeScriptnpmApache License 2.0cursoreditor
voideditor.com
28.9k2.6k
NvChad/NvChad

Blazing fast Neovim framework providing solid defaults and a beautiful UI, enhancing your neovim experience.

LuaGNU General Public License v3.0nvimneovim
nvchad.com
28.4k2.2k
Kilo-Org/kilocode

Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent.

TypeScriptnpmMIT Licenseai-codingvscode
kilo.ai
26.4k3k
conwnet/github1s

One second to read GitHub code with VS Code.

TypeScriptnpmMIT Licensehacktoberfestvscode
github1s.com
23.3k908
LunarVim/LunarVim

🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.

LuaGNU General Public License v3.0neovimvim
lunarvim.org
19.3k1.5k
datawhalechina/easy-vibe

💻 vibe coding 2026 | Your First Modern Coding course beginners to master step by step.

JavaScriptnpmaicourse
datawhalechina.github.io/easy-vibe/
18.4k1.8k
foambubble/foam

A personal knowledge management and sharing system for VSCode

TypeScriptnpmOthergraph-visualisationmarkdown
foam.md
17.3k772