Skip to content

re. #34 discussion#35

Closed
silvinor wants to merge 1 commit intopreactjs:masterfrom
silvinor:vite-8-support
Closed

re. #34 discussion#35
silvinor wants to merge 1 commit intopreactjs:masterfrom
silvinor:vite-8-support

Conversation

@silvinor
Copy link

No description provided.

@silvinor silvinor mentioned this pull request Mar 15, 2026
@silvinor silvinor closed this Mar 15, 2026
Comment on lines +178 to +179
// Vite 8 renamed `rollupOptions` to `rolldownOptions` :( -> fall back to rollupOptions for Vite 5–7
const _buildOpts = config.build.rolldownOptions ?? config.build.rollupOptions;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless it's absolutely needed, and it doesn't appear to be, I don't want to do this.

Comment on lines -240 to +242
`const relList = document.createElement('link').relList;`,
/const relList = document\.createElement\(["']link["']\)\.relList;?/,
Copy link
Member

@rschristian rschristian Mar 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned, this is just a slower, harder to debug, and less documented combination of the 3 distinct branches. No thanks.

/** @type {Partial<import('./types.d.ts').Head>} */
let head = { lang: '', title: '', elements: new Set() };

// Vite 8 native Rolldown path: modulepreload polyfill is injected by rolldown/experimental
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what "native Rolldown path:" is supposed to mean, or what "rolldown/experimental" is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants