-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix: webpack5 build 模式下没有生成物理缓存 #6335
Conversation
本地验证过可以吗? |
存在问题:
|
@@ -52,7 +52,7 @@ class Bundler { | |||
console.error(err); | |||
return reject(new Error('build failed')); | |||
} | |||
|
|||
compiler.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compiler.close() | |
// ref: https://github.com/webpack/webpack/issues/12345#issuecomment-755273757 | |
// @ts-ignore | |
compiler.close(); |
.umi-production 清空的问题我修下。 |
本地测试通过 |
4的文档没有看到close方法 或者更改调用方式为 |
我加个 ?. 跑跑用例看。 |
Codecov Report
@@ Coverage Diff @@
## master #6335 +/- ##
=======================================
Coverage 84.59% 84.59%
=======================================
Files 157 157
Lines 3563 3564 +1
Branches 974 974
=======================================
+ Hits 3014 3015 +1
Misses 539 539
Partials 10 10
Continue to review full report at Codecov.
|
* fix: webpack5 build 模式下没有生成物理缓存 see webpack/webpack#12345 (comment) Closes umijs#6266 * Update packages/bundler-webpack/src/index.ts * Update packages/bundler-webpack/src/index.ts Co-authored-by: chencheng (云谦) <sorrycc@gmail.com>
Checklist
npm test
passesDescription of change