From 455e7f37657cda031c8c2b27fb44501ba013e31e Mon Sep 17 00:00:00 2001 From: Aaron Klinker Date: Wed, 27 Sep 2023 11:29:45 -0500 Subject: [PATCH] fix(content-scripts): Don't throw an error when including `include` or `exclude` options on a content script --- src/core/server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/server.ts b/src/core/server.ts index 6e1cf4aed..adf25b1ac 100644 --- a/src/core/server.ts +++ b/src/core/server.ts @@ -101,8 +101,10 @@ export function reloadContentScripts( const js = [getEntrypointBundlePath(entry, config.outDir, '.js')]; const css = getContentScriptCssFiles([entry], server.currentOutput); + const { include: _1, exclude: _2, ...options } = entry.options; + server.reloadContentScript({ - ...entry.options, + ...options, js, css, });