Skip to content

Commit

Permalink
fix(esbuild): do not minify declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 18, 2023
1 parent 4099142 commit 83b3ed2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/builder/plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export function esbuild(options: EsbuildOptions): Plugin {
if (!options.minify) {
return null;
}
if (/\.d\.(c|m)?tsx?$/.test(fileName)) {
return null;
}
const loader = getLoader(fileName);
if (!loader) {
return null;
Expand Down

0 comments on commit 83b3ed2

Please sign in to comment.