Skip to content

Commit

Permalink
fix(esbuild): fix breaking change introduced in esbuild v0.7
Browse files Browse the repository at this point in the history
esbuild v0.7 instroduced config options validation, so plugin specific options were not valid

closes #78
  • Loading branch information
floydspace committed Sep 13, 2020
1 parent b90f4e3 commit f89960b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ export class EsbuildPlugin implements Plugin {
platform: 'node',
};

// esbuild v0.7.0 introduced config options validation, so I have to delete plugin specific options from esbuild config.
delete config['exclude'];
delete config['packager'];

return build(config);
}));

Expand Down

0 comments on commit f89960b

Please sign in to comment.