yyx990803 / launch-editor

Open file in editor from Node.js.
MIT License
585 stars 67 forks source link

Replace chalk with picocolors #32

Closed TrySound closed 2 years ago

TrySound commented 2 years ago

This is another take to make vite install size smaller.

Currently vite bundles two instances of chalk. v2 from this package and v4 in own code.

Both are quite big

https://packagephobia.com/result?p=chalk@2.4.2 https://packagephobia.com/result?p=chalk@4.1.2

I suggest to replace it with micropackage which became quite popular recently

https://packagephobia.com/result?p=picocolors https://www.npmtrends.com/picocolors

TrySound commented 2 years ago

@sodatea @yyx990803 Would it be possible to release new version? I want to use it in vite.

haoqunjiang commented 2 years ago

Yeah, in a few hours.