diff --git a/packages/bundler-webpack/src/config/handleModuleStyles.ts b/packages/bundler-webpack/src/config/handleModuleStyles.ts index 2a9d7dfe5c..ea799e5332 100644 --- a/packages/bundler-webpack/src/config/handleModuleStyles.ts +++ b/packages/bundler-webpack/src/config/handleModuleStyles.ts @@ -96,20 +96,14 @@ export const handleModuleStyles = ({ lang: 'scss', test: /\.scss$/, loaderName: 'sass-loader', - loaderOptions: { - api: 'modern-compiler', - ...options.scss, - }, + loaderOptions: options.scss, }) handleStyle({ lang: 'sass', test: /\.sass$/, loaderName: 'sass-loader', - loaderOptions: { - api: 'modern-compiler', - ...options.sass, - }, + loaderOptions: options.sass, }) handleStyle({