-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature 新增 webpack 不同级别编译错误处理方式 #14559
Merged
Merged
Conversation
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
Chen-jj
previously requested changes
Sep 25, 2023
另外需要更新一下文档的 项目配置 部分 |
关联更新: |
@Chen-jj 健哥 这个特性如何了 后续cicd上想着能用上 |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #14559 +/- ##
=======================================
Coverage 80.80% 80.80%
=======================================
Files 9 9
Lines 646 646
Branches 123 123
=======================================
Hits 522 522
Misses 110 110
Partials 14 14 |
您好,我已收到您的邮件,我会尽快给你回复,如有急事,请致电13825803202,谢谢。
|
ZakaryCode
approved these changes
Dec 26, 2023
稍微调整了下,下一个版本上 |
ZakaryCode
approved these changes
Dec 26, 2023
ZakaryCode
added a commit
that referenced
this pull request
Jan 15, 2024
* feat(webpack5-runner): 新增webpack5编译错误级别处理 * feat(webpack5-runner): 新增webpack4编译错误级别处理 * fix: 移除不必要的 any 类型 * fix: 移除 service 不必要的 files 配置 --------- Co-authored-by: chenjiajian <798095202@qq.com> Co-authored-by: Zakary <zakarycode@gmail.com>
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
这个 PR 做了什么? (简要描述所做更改)
背景:当 Taro 框架在流水线的自动集成环节中进行编译构建时,编译错误并不会以非 0 退出码结束进程,导致无法判断构建生成发布物是否功能完善,容易造成事故。
目标:当 Taro 框架在流水线的自动集成环节中进行编译构建时,如果发生编译错误,应该以非 0 的退出码结束进程,以方便自动化脚本定义该次流程成功或失败。
目前 webpack 编译过程中的错误处理(Error Handling) 主要涉及以下三种类型的错误:
1、致命的 wepback 错误(配置出错等)
2、编译错误(缺失的 module,语法错误等)
3、编译警告
其中编译警告并不会影响应用功能的正常使用,无需考虑处理。
通过在工程编译配置中新增字段 errorLevel 来定义错误处理的严格模式。
参数值说明:
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: