From f3251b7a73e234cb585edfb969b1b1981d872cd6 Mon Sep 17 00:00:00 2001 From: Mister-Hope Date: Thu, 25 Jul 2024 21:06:49 +0800 Subject: [PATCH] feat(bundler-webpack): add api field in sass-loader option type (#1588) Co-authored-by: meteorlxy --- packages/bundler-webpack/src/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bundler-webpack/src/types.ts b/packages/bundler-webpack/src/types.ts index 7cbdbd569e..eea6ec05a3 100644 --- a/packages/bundler-webpack/src/types.ts +++ b/packages/bundler-webpack/src/types.ts @@ -123,6 +123,7 @@ export interface StylusLoaderOptions extends LoaderOptions { * @see https://github.com/webpack-contrib/sass-loader#options */ export interface SassLoaderOptions extends LoaderOptions { + api?: 'legacy' | 'modern' | 'modern-compiler' implementation?: Record | string sassOptions?: StylePreprocessorOptions }