Skip to content

Commit bcbd228

Browse files
authored
chore: 调整 Dart Sass 的 warnings 配置 (#16604)
1 parent 9174d18 commit bcbd228

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/taro-webpack5-runner/src/webpack/WebpackModule.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ export class WebpackModule {
104104
implementation: require('sass'),
105105
sassOptions: {
106106
outputStyle: 'expanded',
107+
// https://github.com/sass/dart-sass/blob/main/CHANGELOG.md#js-api
108+
silenceDeprecations: ['legacy-js-api'],
107109
importer (url, prev, done) {
108110
// 让 sass 文件里的 @import 能解析小程序原生样式文体,如 @import "a.wxss";
109111
const extname = path.extname(url)

0 commit comments

Comments
 (0)