From a9158e23381513af0315ca9ebe012600d20a552a Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 2 Jul 2024 22:38:00 +0200 Subject: [PATCH] fix(rollup): keep empty (type-only) modules --- src/builders/rollup/plugins/esbuild.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/builders/rollup/plugins/esbuild.ts b/src/builders/rollup/plugins/esbuild.ts index 226af34e..73384f74 100644 --- a/src/builders/rollup/plugins/esbuild.ts +++ b/src/builders/rollup/plugins/esbuild.ts @@ -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, + }; }, }; }