Skip to content

Commit

Permalink
fix: webpack5 build 模式下没有生成物理缓存 (#6335)
Browse files Browse the repository at this point in the history
* fix: webpack5 build 模式下没有生成物理缓存

see
webpack/webpack#12345 (comment)

Closes #6266

* Update packages/bundler-webpack/src/index.ts

* Update packages/bundler-webpack/src/index.ts

Co-authored-by: chencheng (云谦) <sorrycc@gmail.com>
  • Loading branch information
liaoyinglong and sorrycc committed Mar 25, 2021
1 parent 2f44d03 commit ac4fc37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bundler-webpack/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ class Bundler {
console.error(err);
return reject(new Error('build failed'));
}

// ref: https://github.com/webpack/webpack/issues/12345#issuecomment-755273757
// @ts-ignore
compiler.close?.();
// @ts-ignore
resolve({ stats });
});
Expand Down

0 comments on commit ac4fc37

Please sign in to comment.