From 4cc7ea7e45d1e2cf27d03e0a26ed589b01b452ab Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Mon, 7 Mar 2022 19:51:00 +0800 Subject: [PATCH] fix: exclude `banner` and `footer` in the options for rollup --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 06135d7c..88b6e999 100644 --- a/src/index.ts +++ b/src/index.ts @@ -149,6 +149,8 @@ export async function build(_options: Options) { configName: item?.name, options: { ...options, // functions cannot be cloned + banner: undefined, + footer: undefined, esbuildPlugins: undefined, esbuildOptions: undefined, plugins: undefined,