Skip to content

Commit f7f00d0

Browse files
authored
refactor(css)!: remove sass legacy API support (#1954)
1 parent 716299a commit f7f00d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

config/shared-options.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,8 @@ CSS モジュールの動作を設定します。オプションは [postcss-mod
227227
CSS プリプロセッサーに渡すオプションを指定します。オプションのキーとしてファイルの拡張子を使用します。各プリプロセッサーでサポートされているオプションは、それぞれのドキュメントで確認できます:
228228

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

@@ -248,7 +247,7 @@ export default defineConfig({
248247
},
249248
},
250249
scss: {
251-
api: 'modern-compiler', // または "modern", "legacy"
250+
api: 'modern-compiler', // または "modern"
252251
importers: [
253252
// ...
254253
],

0 commit comments

Comments
 (0)