Skip to content

Commit

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

/cc @monsonjeremy - let me know if this work for you.
  • Loading branch information
developit authored Jun 12, 2020
1 parent 2cd6910 commit d23c22c
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 d23c22c

Please sign in to comment.