Skip to content

Commit 9476c59

Browse files
authored
feat(css)!: change default sass api to modern/modern-compiler (#1658)
1 parent a1961cf commit 9476c59

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

config/shared-options.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,12 @@ CSS モジュールの動作を設定します。オプションは [postcss-mod
227227

228228
CSS プリプロセッサーに渡すオプションを指定します。オプションのキーとしてファイルの拡張子を使用します。各プリプロセッサーでサポートされているオプションは、それぞれのドキュメントで確認できます:
229229

230-
- `sass`/`scss` - トップレベルのオプション `api: "legacy" | "modern" | "modern-compiler"`(デフォルト `"legacy"`)で、使用する sass API を切り替えることができます。最高のパフォーマンスを得るには、`sass-embedded` パッケージとともに `api: "modern-compiler"` を使用することをおすすめします。[オプション(legacy)](https://sass-lang.com/documentation/js-api/interfaces/LegacyStringOptions)[オプション(modern)](https://sass-lang.com/documentation/js-api/interfaces/stringoptions/)
231-
- `less` - [オプション](https://lesscss.org/usage/#less-options)
232-
- `styl`/`stylus` - オブジェクトとして渡せる [`define`](https://stylus-lang.com/docs/js.html#define-name-node) のみサポートされています。
230+
- `sass`/`scss`:
231+
- 使用する sass の API を `api: "modern-compiler" | "modern" | "legacy"` で選択します(`sass-embedded` がインストールされている場合はデフォルトで `"modern-compiler"`、そうでない場合は `"modern"`)。最高のパフォーマンスを得るには、`sass-embedded` パッケージで `api: "modern-compiler"` を使用することをお勧めします。`"legacy"` API は非推奨であり、Vite 7 で削除される予定です。
232+
- [オプション(modern)](https://sass-lang.com/documentation/js-api/interfaces/stringoptions/)
233+
- [オプション(legacy)](https://sass-lang.com/documentation/js-api/interfaces/LegacyStringOptions)
234+
- `less`: [オプション](https://lesscss.org/usage/#less-options)
235+
- `styl`/`stylus`: オブジェクトとして渡せる [`define`](https://stylus-lang.com/docs/js.html#define-name-node) のみサポートされています。
233236

234237
**例:**
235238

0 commit comments

Comments
 (0)