sass/dart-sass

[Feature Request] Distribute a core sass library without cli & dependencies

开放

#976 创建于 2020年3月29日

 (1 条评论) (18 个反应) (0 位负责人)Dart (376 个派生)batch import
JavaScriptenhancementhelp wanted

仓库指标

星标
 (4,192 个星标)
PR 合并指标
 (平均合并 8天 8小时) (30 天内合并 18 个 PR)

描述

One of the most attractive things about dart-sass is that the sass npm package is pure js instead of using native code. However, the library includes a dependency on chokidar which includes native dependencies (fs-events). This causes issues for some important use cases (E.g. distributing a Sass compiler within a VS Code extension).

I realize that fs-events is an optional dependency of chokidar but seeing failed npm installation dependencies with every yarn install is actually a big problem in terms of supporting my code at scale... a lot of people will miss the "this is an optional dependency, it's nbd" message and waste time trying to debug it.

It would be super awesome if the core compiler of sass was extracted out to a different npm package that could be installed when you don't need to use the cli. (Perhaps @sass/compiler?)

贡献者指南