Skip to content

chore(deps): Upgrade to Vite 6 and related dependencies - #1496

Merged
aklinker1 merged 12 commits into
mainfrom
chokidar-4
Mar 3, 2025
Merged

aklinker1 merged 12 commits into
mainfrom
chokidar-4

Conversation

@aklinker1

@aklinker1 aklinker1 commented Mar 3, 2025 •

Copy link
Copy Markdown
Member

Dependencies upgraded:

Dependency Version Change
vite 5 → 6 (monorepo only, you can still use vite 5+ in your own projects)
@vitejs/plugin-vue 5.2.0 → 5.2.1
@vitest/coverage-v8 2.1.4 → 3.0.7
c12 1.11.2 → 3.0.2
chokidar 3.6.0 → 4.0.3
esbuild 0.21.5 → 0.25.0
jiti 1.21.6 → 2.4.2
tsx 4.15.7 → 4.19.3
unbuild 2.0.0 → 3.5.0
unocss 0.64.0 → 66.0.0 (monorepo only, you can still use v0.64+ in your own projects)
vitepress 1.5.0 → 1.6.3
vitest 2.1.4 → 3.0.7
vitest-mock-extended 2.0.2 → 3.0.1
vitest-plugin-random-seed 1.1.0 → 1.1.1

This replaces:

This closes:

@netlify

netlify Bot commented Mar 3, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 422ff37
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/67c63ef8e64a2e0008902ebd
😎 Deploy Preview https://deploy-preview-1496--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pkg-pr-new

pkg-pr-new Bot commented Mar 3, 2025 •

Copy link
Copy Markdown

Open in Stackblitz

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@1496

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@1496

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@1496

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@1496

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@1496

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@1496

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@1496

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@1496

wxt

npm i https://pkg.pr.new/wxt@1496

commit: 422ff37

@aklinker1 aklinker1 changed the title chore(deps): bump chokidar from 3.6.0 to 4.0.3 chore(deps): bump to Vite 6 and related dependencies Mar 3, 2025
@aklinker1 aklinker1 changed the title chore(deps): bump to Vite 6 and related dependencies chore(deps): bump to Vite 6 related dependencies Mar 3, 2025
@aklinker1 aklinker1 changed the title chore(deps): bump to Vite 6 related dependencies chore(deps): bump to Vite 6 and related dependencies Mar 3, 2025
@aklinker1 aklinker1 changed the title chore(deps): bump to Vite 6 and related dependencies chore(deps): Upgrade to Vite 6 and related dependencies Mar 3, 2025

export default defineBuildConfig({
rootDir: 'modules',
rootDir: resolve(__dirname, 'modules'),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not using an absolute path caused build to fail on unbuild 3.5


export default defineBuildConfig({
rootDir: 'modules',
rootDir: resolve(__dirname, 'modules'),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not using an absolute path caused build to fail on unbuild 3.5

migratedValue;
} catch (err) {
throw Error(`v${migrateToVersion} migration failed for "${key}"`, {
throw new MigrationError(key, migrateToVersion, {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Vitest 3 introduced more strict error equality checks, causing the test to fail since we weren't using the actual migration error class. Basically, the newer vitest caught a bug

Comment on lines +24 to +25
// TODO: Revert to 1 once vite is upgraded to >6.0.8
expect([...esbuildVersions]).toHaveLength(2);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Currently, tsx only support esbuild 0.23 or 0.25, while vite 6.0.8 supports 0.24... So for now, there's two versions, until I can update vite to a newer version that supports 0.25 as well.

Comment on lines -55 to -57
jitiOptions: {
esmResolve: true,
},

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ESM by default now

Comment on lines -68 to +67
experimentalBun: false,
tryNative: false,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Same option, just renamed to support deno as well.

@aklinker1
aklinker1 marked this pull request as ready for review March 3, 2025 23:52
@aklinker1
aklinker1 requested a review from Timeraa as a code owner March 3, 2025 23:52
@aklinker1
aklinker1 merged commit 798f3b8 into main Mar 3, 2025
@aklinker1
aklinker1 deleted the chokidar-4 branch March 3, 2025 23:52
@github-actions

github-actions Bot commented Mar 3, 2025

Copy link
Copy Markdown
Contributor

Thanks for helping make WXT better!

@aklinker1

Copy link
Copy Markdown
Member Author

Released in v0.19.28

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.

1 participant