Skip to content

Commit

Permalink
Merge pull request #51 from sapphi-red/perf-add-optimize-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Sep 4, 2022
2 parents 11d8bb0 + f50ff2c commit e721b46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/devtools.ts
Expand Up @@ -27,6 +27,14 @@ export function preactDevtoolsPlugin({
// Ensure that we resolve before everything else
enforce: "pre",

config() {
return {
optimizeDeps: {
include: ["preact/debug", "preact/devtools"],
},
};
},

configResolved(resolvedConfig) {
config = resolvedConfig;
},
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -81,7 +81,7 @@ function preactPlugin({
config() {
return {
optimizeDeps: {
include: ["preact/jsx-runtime"],
include: ["preact/jsx-runtime", "preact/jsx-dev-runtime"],
},
};
},
Expand Down

0 comments on commit e721b46

Please sign in to comment.