Skip to content

Conversation

@MadCcc
Copy link
Member

@MadCcc MadCcc commented Sep 7, 2023

使用 async/await 会导致 webpack 4 打包 regeneratorRuntime 的时候多打包一份 cjs 模块,升级 webpack 5 可以解决,因为 babel 使用了 exports 来指定 import 路径。

这里没有必要使用 async/await,先删除了。

@vercel
Copy link

vercel bot commented Sep 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
notification ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 2:15am

@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #315 (cf1fa3d) into master (cf3bc99) will not change coverage.
The diff coverage is 100.00%.

❗ Current head cf1fa3d differs from pull request most recent head 868b33a. Consider uploading reports for the commit 868b33a to get more accurate results

@@           Coverage Diff           @@
##           master     #315   +/-   ##
=======================================
  Coverage   99.70%   99.70%           
=======================================
  Files           7        7           
  Lines         675      675           
  Branches      106      106           
=======================================
  Hits          673      673           
  Misses          2        2           
Files Changed Coverage Δ
src/NoticeList.tsx 98.83% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@MadCcc MadCcc merged commit d3b7abf into master Sep 7, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix/bundle-size branch September 7, 2023 02:18
@yoyo837
Copy link
Member

yoyo837 commented Sep 7, 2023

学到了.

1 similar comment
@afc163
Copy link
Member

afc163 commented Sep 7, 2023

学到了.

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.

4 participants