Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
uses: actions/checkout@v6

- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v6
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
- uses: actions/checkout@v6

- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0

- name: Set node version to 24
uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v6

- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0

- name: Set node version to 24
uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-close-require.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
pull-requests: write # for actions-cool/issues-helper to update PRs
steps:
- name: needs reproduction
uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3
uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3
with:
actions: "close-issues"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- name: contribution welcome
if: github.event.label.name == 'contribution welcome' || github.event.label.name == 'help wanted'
uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3
uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3
with:
actions: "remove-labels"
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -23,7 +23,7 @@ jobs:

- name: remove pending
if: (github.event.label.name == 'enhancement' || contains(github.event.label.description, '(priority)')) && contains(github.event.issue.labels.*.name, 'pending triage')
uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3
uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3
with:
actions: "remove-labels"
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -32,7 +32,7 @@ jobs:

- name: needs reproduction
if: github.event.label.name == 'needs reproduction'
uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3
uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3
with:
actions: "create-comment, remove-labels"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-template-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
core.setOutput('skip', 'true');
}

- uses: warpdotdev/oz-agent-action@827a9ad5438c195eb9d1d9a7acece3a8000be512 # v1
- uses: warpdotdev/oz-agent-action@1c023d0799f42be182644ced823d372a5ddddb40 # v1
if: steps.detect.outputs.skip == 'false'
id: agent
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock-closed-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'vitejs/vite'
runs-on: ubuntu-slim
steps:
- uses: actions-cool/issues-helper@71b62d7da76e59ff7b193904feb6e77d4dbb2777 # v3
- uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3
with:
actions: "lock-issues"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v6

- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0

- name: Set node version to 24
uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v6

- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0

- name: Set node version to 24
uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion docs/config/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ In this case, you need to set `build.cssTarget` to `chrome61` to prevent vite fr
## build.cssMinify

- **Type:** `boolean | 'lightningcss' | 'esbuild'`
- **Default:** the same as [`build.minify`](#build-minify) for client, `'lightningcss'` for SSR
- **Default:** `'lightningcss'`, but `false` if [`build.minify`](#build-minify) is disabled for client build

This option allows users to override CSS minification specifically instead of defaulting to `build.minify`, so you can configure minification for JS and CSS separately. Vite uses [Lightning CSS](https://lightningcss.dev/minification.html) by default to minify CSS. It can be configured using [`css.lightningcss`](./shared-options.md#css-lightningcss). Set the option to `'esbuild'` to use esbuild instead.

Expand Down
12 changes: 3 additions & 9 deletions docs/guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,17 +353,11 @@ Default and named imports from CSS files (e.g `import style from './foo.css'`) a

### Lightning CSS

Starting from Vite 4.4, there is experimental support for [Lightning CSS](https://lightningcss.dev/). You can opt into it by adding [`css.transformer: 'lightningcss'`](../config/shared-options.md#css-transformer) to your config file and install the optional [`lightningcss`](https://www.npmjs.com/package/lightningcss) dependency:
Vite uses [Lightning CSS](https://lightningcss.dev/) to minify CSS in production builds by default. However, PostCSS is still used for other CSS processing.

```bash
npm add -D lightningcss
```

If enabled, CSS files will be processed by Lightning CSS instead of PostCSS. To configure it, you can pass Lightning CSS options to the [`css.lightningcss`](../config/shared-options.md#css-lightningcss) config option.

To configure CSS Modules, you'll use [`css.lightningcss.cssModules`](https://lightningcss.dev/css-modules.html) instead of [`css.modules`](../config/shared-options.md#css-modules) (which configures the way PostCSS handles CSS modules).
There is experimental support for using Lightning CSS for CSS processing entirely. You can opt into it by adding [`css.transformer: 'lightningcss'`](../config/shared-options.md#css-transformer).

By default, Vite uses esbuild to minify CSS. Lightning CSS can also be used as the CSS minifier with [`build.cssMinify: 'lightningcss'`](../config/build-options.md#build-cssminify).
To configure it, you can pass Lightning CSS options to the [`css.lightningcss`](../config/shared-options.md#css-lightningcss) config option. To configure CSS Modules, you should use [`css.lightningcss.cssModules`](https://lightningcss.dev/css-modules.html) instead of [`css.modules`](../config/shared-options.md#css-modules) (which configures the way PostCSS handles CSS modules).

## Static Assets

Expand Down
14 changes: 2 additions & 12 deletions docs/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,7 @@ Currently, the Oxc transformer does not support lowering native decorators as we

:::: details Workaround for lowering native decorators

You can use [Babel](https://babeljs.io/) or [SWC](https://swc.rs/) to lower native decorators for the time being. While SWC is faster than Babel, it does **not support the latest decorator spec** that esbuild supports.

The decorator spec has been updated multiple times since it reached stage 3. The versions supported by each tool are:

- `"2023-11"` (esbuild, TypeScript 5.4+ and Babel support this version)
- `"2023-05"` (TypeScript 5.2+ supports this version)
- `"2023-01"` (TypeScript 5.0+ supports this version)
- `"2022-03"` (SWC supports this version)

See the [Babel decorators versions guide](https://babeljs.io/docs/babel-plugin-proposal-decorators#version) for differences between each version.
You can use [Babel](https://babeljs.io/) or [SWC](https://swc.rs/) to lower native decorators for the time being.

**Using Babel:**

Expand Down Expand Up @@ -197,8 +188,7 @@ export default defineConfig({
swc: {
jsc: {
parser: { decorators: true, decoratorsBeforeExport: true },
// NOTE: SWC doesn't support the '2023-11' version yet.
transform: { decoratorVersion: '2022-03' },
transform: { decoratorVersion: '2023-11' },
},
},
}),
Expand Down
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"@iconify/vue": "^5.0.0",
"@shikijs/vitepress-twoslash": "^4.0.2",
"@types/express": "^5.0.6",
"@voidzero-dev/vitepress-theme": "^4.8.3",
"@voidzero-dev/vitepress-theme": "^4.8.4",
"feed": "^5.2.0",
"markdown-it-image-size": "^15.0.1",
"oxc-minify": "^0.120.0",
"vitepress": "^2.0.0-alpha.16",
"vitepress": "^2.0.0-alpha.17",
"vitepress-plugin-graphviz": "^0.0.1",
"vitepress-plugin-group-icons": "^1.7.1",
"vitepress-plugin-llms": "^1.11.0",
"vitepress-plugin-llms": "^1.12.0",
"vue": "^3.5.30",
"vue-tsc": "^3.2.5"
"vue-tsc": "^3.2.6"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"simple-git-hooks": "^2.13.1",
"tsx": "^4.21.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.57.0",
"typescript-eslint": "^8.57.1",
"vite": "workspace:*",
"vitest": "^4.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ function pkgFromUserAgent(userAgent: string | undefined): PkgInfo | undefined {

function setupReactCompiler(root: string, isTs: boolean) {
// renovate: datasource=npm depName=@rolldown/plugin-babel
const babelPluginVersion = '0.2.1'
const babelPluginVersion = '0.2.2'
// renovate: datasource=npm depName=babel-plugin-react-compiler
const reactCompilerPluginVersion = '1.0.0'
// renovate: datasource=npm depName=@babel/core
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/template-preact-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"preact": "^10.29.0"
},
"devDependencies": {
"@preact/preset-vite": "^2.10.4",
"@preact/preset-vite": "^2.10.5",
"@types/node": "^24.12.0",
"typescript": "~5.9.3",
"vite": "^8.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/template-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"preact": "^10.29.0"
},
"devDependencies": {
"@preact/preset-vite": "^2.10.4",
"@preact/preset-vite": "^2.10.5",
"vite": "^8.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.57.0",
"typescript-eslint": "^8.57.1",
"vite": "^8.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@sveltejs/vite-plugin-svelte": "^7.0.0",
"@tsconfig/svelte": "^5.0.8",
"@types/node": "^24.12.0",
"svelte": "^5.53.12",
"svelte": "^5.54.1",
"svelte-check": "^4.4.5",
"typescript": "~5.9.3",
"vite": "^8.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/template-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^7.0.0",
"svelte": "^5.53.12",
"svelte": "^5.54.1",
"vite": "^8.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-vue-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@vue/tsconfig": "^0.9.0",
"typescript": "~5.9.3",
"vite": "^8.0.1",
"vue-tsc": "^3.2.5"
"vue-tsc": "^3.2.6"
}
}
8 changes: 4 additions & 4 deletions packages/plugin-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
"@babel/core": "^7.29.0",
"@babel/plugin-transform-dynamic-import": "^7.27.1",
"@babel/plugin-transform-modules-systemjs": "^7.29.0",
"@babel/preset-env": "^7.29.0",
"babel-plugin-polyfill-corejs3": "^0.14.1",
"babel-plugin-polyfill-regenerator": "^0.6.7",
"@babel/preset-env": "^7.29.2",
"babel-plugin-polyfill-corejs3": "^0.14.2",
"babel-plugin-polyfill-regenerator": "^0.6.8",
"browserslist": "^4.28.1",
"browserslist-to-esbuild": "^2.1.1",
"core-js": "^3.48.0",
"core-js": "^3.49.0",
"magic-string": "^0.30.21",
"regenerator-runtime": "^0.14.1",
"systemjs": "^6.15.1"
Expand Down
14 changes: 7 additions & 7 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"fsevents": "~2.3.3"
},
"devDependencies": {
"@babel/parser": "^7.29.0",
"@babel/parser": "^7.29.2",
"@jridgewell/remapping": "^2.3.5",
"@jridgewell/trace-mapping": "^0.3.31",
"@polka/compression": "^1.0.0-next.25",
Expand All @@ -94,9 +94,9 @@
"@types/escape-html": "^1.0.4",
"@types/pnpapi": "^0.0.5",
"@vitest/utils": "4.1.0",
"@vitejs/devtools": "^0.1.0",
"@vitejs/devtools": "^0.1.5",
"artichokie": "^0.4.2",
"baseline-browser-mapping": "^2.10.8",
"baseline-browser-mapping": "^2.10.10",
"cac": "^7.0.0",
"chokidar": "^3.6.0",
"connect": "^3.7.0",
Expand All @@ -111,9 +111,9 @@
"etag": "^1.8.1",
"host-validation-middleware": "^0.1.2",
"http-proxy-3": "^1.23.2",
"launch-editor-middleware": "^2.13.1",
"launch-editor-middleware": "^2.13.2",
"magic-string": "^0.30.21",
"mlly": "^1.8.1",
"mlly": "^1.8.2",
"mrmime": "^2.0.1",
"nanoid": "^5.1.7",
"obug": "^1.0.2",
Expand All @@ -134,9 +134,9 @@
"sass-embedded": "^1.98.0",
"sirv": "^3.0.2",
"strip-literal": "^3.1.0",
"terser": "^5.46.0",
"terser": "^5.46.1",
"ufo": "^1.6.3",
"ws": "^8.19.0"
"ws": "^8.20.0"
},
"peerDependencies": {
"@types/node": "^20.19.0 || >=22.12.0",
Expand Down
4 changes: 2 additions & 2 deletions playground/backend-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"preview": "vite preview"
},
"devDependencies": {
"@tailwindcss/vite": "^4.2.1",
"@tailwindcss/vite": "^4.2.2",
"sass": "^1.98.0",
"tailwindcss": "^4.2.1",
"tailwindcss": "^4.2.2",
"tinyglobby": "^0.2.15"
}
}
2 changes: 1 addition & 1 deletion playground/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"devDependencies": {
"vite": "workspace:*",
"@vitejs/devtools": "^0.1.0"
"@vitejs/devtools": "^0.1.5"
}
}
2 changes: 1 addition & 1 deletion playground/fs-serve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"preview:deny": "vite preview root --config ./root/vite.config-deny.js"
},
"devDependencies": {
"ws": "^8.19.0"
"ws": "^8.20.0"
}
}
2 changes: 1 addition & 1 deletion playground/legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"vite": "workspace:*",
"@vitejs/plugin-legacy": "workspace:*",
"express": "^5.2.1",
"terser": "^5.46.0"
"terser": "^5.46.1"
}
}
2 changes: 1 addition & 1 deletion playground/preload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"preview:preload-disabled": "vite preview --config vite.config-preload-disabled.js"
},
"devDependencies": {
"terser": "^5.46.0",
"terser": "^5.46.1",
"@vitejs/test-dep-a": "file:./dep-a",
"@vitejs/test-dep-including-a": "file:./dep-including-a"
}
Expand Down
2 changes: 1 addition & 1 deletion playground/resolve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"#/*": "./imports-path/root-slash/*"
},
"dependencies": {
"@babel/runtime": "^7.28.6",
"@babel/runtime": "^7.29.2",
"normalize.css": "^8.0.1",
"@vitejs/test-resolve-browser-field": "link:./browser-field",
"@vitejs/test-resolve-browser-module-field1": "link:./browser-module-field1",
Expand Down
2 changes: 1 addition & 1 deletion playground/ssr-webworker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@vitejs/test-worker-exports": "file:./worker-exports"
},
"devDependencies": {
"miniflare": "^4.20260312.0",
"miniflare": "^4.20260317.1",
"@vitejs/test-resolve-linked": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions playground/tailwind-sourcemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@tailwindcss/postcss": "^4.2.1",
"tailwindcss": "^4.2.1"
"@tailwindcss/postcss": "^4.2.2",
"tailwindcss": "^4.2.2"
}
}
4 changes: 2 additions & 2 deletions playground/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"preview": "vite preview"
},
"dependencies": {
"@tailwindcss/vite": "^4.2.1",
"tailwindcss": "^4.2.1"
"@tailwindcss/vite": "^4.2.2",
"tailwindcss": "^4.2.2"
},
"devDependencies": {
"tsx": "^4.21.0"
Expand Down
Loading
Loading