-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(builder): unify progress bar style in webpack / Rspack mode (#4665)
- Loading branch information
1 parent
4b8cdd3
commit fe8caeb
Showing
7 changed files
with
56 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@modern-js/builder-webpack-provider': patch | ||
'@modern-js/builder-rspack-provider': patch | ||
'@modern-js/builder-shared': patch | ||
--- | ||
|
||
feat(builder): unify progress bar style in webpack / Rspack mode | ||
|
||
feat(builder): 对齐 webpack / Rspack 模式下的进度条样式 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { ForegroundColor as Color } from '@modern-js/utils/compiled/chalk'; | ||
|
||
const colorList: Array<typeof Color> = [ | ||
'green', | ||
'cyan', | ||
'yellow', | ||
'blue', | ||
'greenBright', | ||
'cyanBright', | ||
'yellowBright', | ||
'blueBright', | ||
'redBright', | ||
'magentaBright', | ||
]; | ||
|
||
export const getProgressColor = (index: number) => | ||
colorList[index % colorList.length]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters