From 57cc2dcb6b2038ca4006d72128c12c3139090e80 Mon Sep 17 00:00:00 2001 From: Jun Shindo <46585162+jay-es@users.noreply.github.com> Date: Sat, 26 Oct 2024 19:39:30 +0900 Subject: [PATCH] feat(css)!: change default sass api to modern/modern-compiler --- config/shared-options.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/shared-options.md b/config/shared-options.md index 62175106..e795d363 100644 --- a/config/shared-options.md +++ b/config/shared-options.md @@ -227,9 +227,12 @@ CSS モジュールの動作を設定します。オプションは [postcss-mod CSS プリプロセッサーに渡すオプションを指定します。オプションのキーとしてファイルの拡張子を使用します。各プリプロセッサーでサポートされているオプションは、それぞれのドキュメントで確認できます: -- `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/)。 -- `less` - [オプション](https://lesscss.org/usage/#less-options)。 -- `styl`/`stylus` - オブジェクトとして渡せる [`define`](https://stylus-lang.com/docs/js.html#define-name-node) のみサポートされています。 +- `sass`/`scss`: + - 使用する sass の API を `api: "modern-compiler" | "modern" | "legacy"` で選択します(`sass-embedded` がインストールされている場合はデフォルトで `"modern-compiler"`、そうでない場合は `"modern"`)。最高のパフォーマンスを得るには、`sass-embedded` パッケージで `api: "modern-compiler"` を使用することをお勧めします。`"legacy"` API は非推奨であり、Vite 7 で削除される予定です。 + - [オプション(modern)](https://sass-lang.com/documentation/js-api/interfaces/stringoptions/) + - [オプション(legacy)](https://sass-lang.com/documentation/js-api/interfaces/LegacyStringOptions) +- `less`: [オプション](https://lesscss.org/usage/#less-options)。 +- `styl`/`stylus`: オブジェクトとして渡せる [`define`](https://stylus-lang.com/docs/js.html#define-name-node) のみサポートされています。 **例:**