fix(content-scripts): Don't throw an error when including include or exclude options on a content script
This commit is contained in:
+3
-1
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user