fix(content-scripts): Don't throw an error when including include or exclude options on a content script

This commit is contained in:
Aaron Klinker
2023-09-27 11:29:45 -05:00
parent 25b6ab92f5
commit 455e7f3765
+3 -1
View File
@@ -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,
});