Skip to content

Commit

Permalink
fix(content-scripts): Don't throw an error when including include o…
Browse files Browse the repository at this point in the history
…r `exclude` options on a content script
  • Loading branch information
aklinker1 committed Sep 27, 2023
1 parent 25b6ab9 commit 455e7f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 455e7f3

Please sign in to comment.