Skip to content

Commit

Permalink
fix(esbuild-iife): do not handle copied files (#10904)
Browse files Browse the repository at this point in the history
  • Loading branch information
fz6m committed Apr 6, 2023
1 parent 972b155 commit 2d9c2c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/bundler-webpack/src/plugins/EsbuildMinifyFix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ export class EsbuildMinifyFix {
return false;
}

// Skip copy-webpack-plugin files
// https://github.com/webpack-contrib/copy-webpack-plugin/blob/59bdbb2eb550963715782fa0855fa3c382fa0438/src/index.js#L1062
if (info?.copied) {
return false;
}

// 处理过无需再次处理
if (info?.EsbuildMinifyFix) {
return false;
Expand Down

0 comments on commit 2d9c2c0

Please sign in to comment.