Skip to content

Commit

Permalink
fix(rollup): keep empty (type-only) modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 2, 2024
1 parent eaabffc commit a9158e2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/builders/rollup/plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,10 @@ export function esbuild(options: EsbuildOptions): Plugin {
sourcefile: fileName,
minify: true,
});
if (result.code) {
return {
code: result.code,
map: result.map || null,
};
}
return {
code: result.code,
map: result.map || null,
};
},
};
}
Expand Down

0 comments on commit a9158e2

Please sign in to comment.