Skip to content

Commit

Permalink
fix: 移除sass-loader 中不必要的 fibers 依赖 #9291 #9322 (#9324)
Browse files Browse the repository at this point in the history
* fix: 移除sass-loader 中不必要的 fibers 依赖

* fix: 移除sass-loader 中不必要的 fibers 依赖

Co-authored-by: Li,Weitao <[email protected]>
  • Loading branch information
netfishx and luckyadam committed May 19, 2021
1 parent 8732dca commit 148e3c8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/taro-mini-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"css-loader": "^3.0.0",
"css-what": "3.3.0",
"csso-webpack-plugin": "2.0.0-beta.1",
"fibers": "5.0.0",
"file-loader": "^6.0.0",
"fs-extra": "^8.0.1",
"html-minifier": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-mini-runner/src/webpack/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const getModule = (appPath: string, {
implementation: sass,
sassOptions: {
outputStyle: 'expanded',
fiber: require('fibers'),
fiber: false,
importer (url, prev, done) {
// 让 sass 文件里的 @import 能解析小程序原生样式文体,如 @import "a.wxss";
const extname = path.extname(url)
Expand Down
1 change: 0 additions & 1 deletion packages/taro-webpack-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"css-loader": "3.4.2",
"csso-webpack-plugin": "2.0.0-beta.1",
"detect-port": "1.3.0",
"fibers": "5.0.0",
"file-loader": "^6.0.0",
"fs-extra": "^5.0.0",
"html-webpack-include-assets-plugin": "1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-webpack-runner/src/util/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export const getModule = (appPath: string, {
implementation: sass,
sassOptions: {
outputStyle: 'expanded',
fiber: require('fibers'),
fiber: false,
importer (url, prev, done) {
// 让 sass 文件里的 @import 能解析小程序原生样式文体,如 @import "a.wxss";
const extname = path.extname(url)
Expand Down

0 comments on commit 148e3c8

Please sign in to comment.