From 7a4aeac1a9a93a6c43c2b64033398800f9d6040b Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Thu, 11 Jun 2020 20:59:03 -0400 Subject: [PATCH] [Examples] Fix using-preact dev mode issues (#14098) Should fix https://github.com/vercel/next.js/pull/13976#issuecomment-641677695 /cc @monsonjeremy - let me know if this work for you. --- examples/using-preact/next.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/using-preact/next.config.js b/examples/using-preact/next.config.js index 9ea297c607aa38..f1c41004b1298a 100644 --- a/examples/using-preact/next.config.js +++ b/examples/using-preact/next.config.js @@ -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'; } }