Skip to content

Commit

Permalink
[Examples] Fix using-preact dev mode issues (vercel#14098)
Browse files Browse the repository at this point in the history
Should fix vercel#13976 (comment)

/cc @monsonjeremy - let me know if this work for you.
  • Loading branch information
developit authored and darshkpatel committed Jun 12, 2020
1 parent e821317 commit 7a4aeac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/using-preact/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ module.exports = withPrefresh({
const test = /[\\/]node_modules[\\/](preact|preact-render-to-string|preact-context-provider)[\\/]/
if (cacheGroups.framework) {
cacheGroups.preact = Object.assign({}, cacheGroups.framework, { test })
cacheGroups.commons.name = 'framework'
} else {
cacheGroups.preact = { name: 'commons', chunks: 'all', test }
// if you want to merge the 2 small commons+framework chunks:
// cacheGroups.commons.name = 'framework';
}
}

Expand Down

0 comments on commit 7a4aeac

Please sign in to comment.