Skip to content

Commit 854d753

Browse files
committed
chore: update messages
1 parent d9f5de1 commit 854d753

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.changeset/clean-bears-cough.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@builder.io/qwik': minor
33
---
44

5-
FIX: Qwik now leverages Rollup's new `output.onlyExplicitManualChunks` feature. For the latest and greatest, we recommend to install rollup@^4.52.0 directly in your project. It enables the new Rollup `outputOpts.onlyExplicitManualChunks` feature flag, which improves preloading performance and reduces cache invalidation for a snappier user experience.
5+
FIX: Qwik now leverages Rollup's new `output.onlyExplicitManualChunks` feature, which improves preloading performance and reduces cache invalidation for a snappier user experience.

packages/qwik/src/optimizer/src/plugins/rollup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ export async function normalizeRollupOutputOptionsObject(
253253
*/
254254
outputOpts.hoistTransitiveImports = false;
255255

256+
// V2 official release TODO: remove below checks and just keep `outputOpts.onlyExplicitManualChunks = true;`
256257
const userPkgJsonPath = await findDepPkgJsonPath(optimizer.sys, 'rollup', optimizer.sys.cwd());
257258
if (userPkgJsonPath) {
258259
try {
@@ -272,7 +273,7 @@ export async function normalizeRollupOutputOptionsObject(
272273
outputOpts.onlyExplicitManualChunks = true;
273274
} else {
274275
console.warn(
275-
`⚠️ For the latest and greatest, we recommend to install rollup@^4.52.0 directly in your project. It enables the new Rollup \`outputOpts.onlyExplicitManualChunks\` feature flag, which improves preloading performance and reduces cache invalidation for a snappier user experience.`
276+
`⚠️ We detected that you're using a Rollup version prior to 4.52.0 directly in your project (${version}). For the latest and greatest, we recommend to remove it and let Vite install the latest version for you. It will enable the new Rollup \`outputOpts.onlyExplicitManualChunks\` feature flag, which improves preloading performance and reduces cache invalidation for a snappier user experience.`
276277
);
277278
}
278279
} catch {

0 commit comments

Comments
 (0)