Skip to content
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

refactor: webpack babel 的 exclude 配置逻辑优化 & scripts 正则匹配 mjs/mts #16466

Merged
merged 5 commits into from
Sep 6, 2024

Conversation

ZEJIA-LIU
Copy link
Contributor

@ZEJIA-LIU ZEJIA-LIU commented Sep 5, 2024

这个 PR 做了什么? (简要描述所做更改)

  1. webpack babel 的 exclude 配置逻辑优化
  2. scripts 正则匹配 mjs/mts

这个 PR 是什么类型? (至少选择一个)

  • 错误修复(Bugfix) issue: fix #
  • 新功能(Feature)
  • 代码重构(Refactor)
  • TypeScript 类型定义修改(Typings)
  • 文档修改(Docs)
  • 代码风格更新(Code style update)
  • 其他,请描述(Other, please describe):

这个 PR 涉及以下平台:

  • 所有小程序
  • 微信小程序
  • 支付宝小程序
  • 百度小程序
  • 字节跳动小程序
  • QQ 轻应用
  • 京东小程序
  • 快应用平台(QuickApp)
  • Web 平台(H5)
  • 移动端(React-Native)
  • 鸿蒙(harmony)

@ZEJIA-LIU ZEJIA-LIU changed the title refactor: webpack babel 的 exclude 配置逻辑优化 refactor: webpack babel 的 exclude 配置逻辑优化 & scripts 正则匹配 mjs/mts Sep 5, 2024
Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 56.51%. Comparing base (936c61e) to head (5719e60).
Report is 4 commits behind head on 3.x.

Files with missing lines Patch % Lines
packages/taro-webpack-runner/src/utils/chain.ts 71.42% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##              3.x   #16466   +/-   ##
=======================================
  Coverage   56.51%   56.51%           
=======================================
  Files         500      500           
  Lines       22768    22765    -3     
  Branches     5639     5655   +16     
=======================================
- Hits        12867    12866    -1     
- Misses       8679     8693   +14     
+ Partials     1222     1206   -16     
Flag Coverage Δ
taro-cli 49.21% <ø> (-25.79%) ⬇️
taro-runner 54.01% <71.42%> (+<0.01%) ⬆️
taro-runtime 79.39% <ø> (ø)
taro-web 40.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/taro-helper/src/constants.ts 100.00% <100.00%> (ø)
packages/taro-webpack-runner/src/utils/chain.ts 77.96% <71.42%> (+0.74%) ⬆️

... and 12 files with indirect coverage changes

@ZEJIA-LIU ZEJIA-LIU merged commit 4297c2a into 3.x Sep 6, 2024
25 of 26 checks passed
@ZEJIA-LIU ZEJIA-LIU deleted the fix/webpack-exclude branch September 6, 2024 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants