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@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
uses: pnpm/action-setup@91ab88e2619ed1f46221f0ba42d1492c02baf788 # v6.0.6

- 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@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
uses: pnpm/action-setup@91ab88e2619ed1f46221f0ba42d1492c02baf788 # v6.0.6

- 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@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
uses: pnpm/action-setup@91ab88e2619ed1f46221f0ba42d1492c02baf788 # v6.0.6

- name: Set node version to 24
uses: actions/setup-node@v6
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@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
uses: pnpm/action-setup@91ab88e2619ed1f46221f0ba42d1492c02baf788 # v6.0.6

- 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@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
uses: pnpm/action-setup@91ab88e2619ed1f46221f0ba42d1492c02baf788 # v6.0.6

- name: Set node version to 24
uses: actions/setup-node@v6
Expand Down
4 changes: 2 additions & 2 deletions docs/config/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Note the build will output a warning if the code contains features that cannot b
- **Type:** `boolean | { polyfill?: boolean, resolveDependencies?: ResolveModulePreloadDependenciesFn }`
- **Default:** `{ polyfill: true }`

By default, a [module preload polyfill](https://guybedford.com/es-module-preloading-integrity#modulepreload-polyfill) is automatically injected. The polyfill is auto injected into the proxy module of each `index.html` entry. If the build is configured to use a non-HTML custom entry via `build.rollupOptions.input`, then it is necessary to manually import the polyfill in your custom entry:
By default, a [module preload polyfill](https://guybedford.com/es-module-preloading-integrity#modulepreload-polyfill) is automatically injected. The polyfill is auto injected into the proxy module of each `index.html` entry. If the build is configured to use a non-HTML custom entry via `build.rolldownOptions.input`, then it is necessary to manually import the polyfill in your custom entry:

```js
import 'vite/modulepreload-polyfill'
Expand Down Expand Up @@ -269,7 +269,7 @@ When the value is a string, it will be used as the manifest file path relative t
- **Default:** `false`
- **Related:** [Server-Side Rendering](/guide/ssr)

Produce SSR-oriented build. The value can be a string to directly specify the SSR entry, or `true`, which requires specifying the SSR entry via `rollupOptions.input`.
Produce SSR-oriented build. The value can be a string to directly specify the SSR entry, or `true`, which requires specifying the SSR entry via `rolldownOptions.input`.

## build.emitAssets

Expand Down
2 changes: 1 addition & 1 deletion docs/config/dep-optimization-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Unless noted, the options in this section are only applied to the dependency opt

- **Type:** `string | string[]`

By default, Vite will crawl all your `.html` files to detect dependencies that need to be pre-bundled (ignoring `node_modules`, `build.outDir`, `__tests__` and `coverage`). If `build.rollupOptions.input` is specified, Vite will crawl those entry points instead.
By default, Vite will crawl all your `.html` files to detect dependencies that need to be pre-bundled (ignoring `node_modules`, `build.outDir`, `__tests__` and `coverage`). If `build.rolldownOptions.input` is specified, Vite will crawl those entry points instead.

If neither of these fit your needs, you can specify custom entries using this option - the value should be a [`tinyglobby` pattern](https://superchupu.dev/tinyglobby/comparison) or array of patterns that are relative from Vite project root. This will overwrite default entries inference. Only `node_modules` and `build.outDir` folders will be ignored by default when `optimizeDeps.entries` is explicitly defined. If other folders need to be ignored, you can use an ignore pattern as part of the entries list, marked with an initial `!`. `node_modules` will not be ignored for patterns that explicitly include the string `node_modules`.

Expand Down
4 changes: 2 additions & 2 deletions docs/config/server-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export default defineConfig({

Whether or not to ignore source files in the server sourcemap, used to populate the [`x_google_ignoreList` source map extension](https://developer.chrome.com/articles/x-google-ignore-list/).

`server.sourcemapIgnoreList` is the equivalent of [`build.rollupOptions.output.sourcemapIgnoreList`](https://rollupjs.org/configuration-options/#output-sourcemapignorelist) for the dev server. A difference between the two config options is that the rollup function is called with a relative path for `sourcePath` while `server.sourcemapIgnoreList` is called with an absolute path. During dev, most modules have the map and the source in the same folder, so the relative path for `sourcePath` is the file name itself. In these cases, absolute paths makes it convenient to be used instead.
`server.sourcemapIgnoreList` is the equivalent of [`build.rolldownOptions.output.sourcemapIgnoreList`](https://rollupjs.org/configuration-options/#output-sourcemapignorelist) for the dev server. A difference between the two config options is that the rollup function is called with a relative path for `sourcePath` while `server.sourcemapIgnoreList` is called with an absolute path. During dev, most modules have the map and the source in the same folder, so the relative path for `sourcePath` is the file name itself. In these cases, absolute paths makes it convenient to be used instead.

By default, it excludes all paths containing `node_modules`. You can pass `false` to disable this behavior, or, for full control, a function that takes the source path and sourcemap path and returns whether to ignore the source path.

Expand All @@ -450,5 +450,5 @@ export default defineConfig({
```

::: tip Note
[`server.sourcemapIgnoreList`](#server-sourcemapignorelist) and [`build.rollupOptions.output.sourcemapIgnoreList`](https://rollupjs.org/configuration-options/#output-sourcemapignorelist) need to be set independently. `server.sourcemapIgnoreList` is a server only config and doesn't get its default value from the defined rollup options.
[`server.sourcemapIgnoreList`](#server-sourcemapignorelist) and [`build.rolldownOptions.output.sourcemapIgnoreList`](https://rollupjs.org/configuration-options/#output-sourcemapignorelist) need to be set independently. `server.sourcemapIgnoreList` is a server only config and doesn't get its default value from the defined rollup options.
:::
2 changes: 1 addition & 1 deletion docs/config/shared-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ When `find` is a regular expression, the `replacement` can use [replacement patt
If you have duplicated copies of the same dependency in your app (likely due to hoisting or linked packages in monorepos), use this option to force Vite to always resolve listed dependencies to the same copy (from project root).

:::warning SSR + ESM
For SSR builds, deduplication does not work for ESM build outputs configured from `build.rollupOptions.output`. A workaround is to use CJS build outputs until ESM has better plugin support for module loading.
For SSR builds, deduplication does not work for ESM build outputs configured from `build.rolldownOptions.output`. A workaround is to use CJS build outputs until ESM has better plugin support for module loading.
:::

## resolve.conditions <NonInheritBadge />
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/api-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ await build({
root: path.resolve(import.meta.dirname, './project'),
base: '/foo/',
build: {
rollupOptions: {
rolldownOptions: {
// ...
},
},
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/backend-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you need a custom integration, you can follow the steps in this guide to conf
build: {
// generate .vite/manifest.json in outDir
manifest: true,
rollupOptions: {
rolldownOptions: {
// overwrite default .html entry
input: '/path/to/main.js',
},
Expand Down Expand Up @@ -179,7 +179,7 @@ If you need a custom integration, you can follow the steps in this guide to conf
```

Each entry in the manifest represents one of the following:
- **Entry chunks**: Generated from files specified in [`build.rollupOptions.input`](https://rollupjs.org/configuration-options/#input). These chunks have `isEntry: true` and their key is the relative src path from project root.
- **Entry chunks**: Generated from files specified in [`build.rolldownOptions.input`](https://rollupjs.org/configuration-options/#input). These chunks have `isEntry: true` and their key is the relative src path from project root.
- **Dynamic entry chunks**: Generated from dynamic imports. These chunks have `isDynamicEntry: true` and their key is the relative src path from project root.
- **Non-entry chunks**: Their key is the base name of the generated file prefixed with `_`.
- **Asset chunks**: Generated from imported assets like images, fonts. Their key is the relative src path from project root.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
"@types/cross-spawn": "^6.0.6",
"@types/etag": "^1.8.4",
"@types/less": "^3.0.8",
"@types/node": "^24.12.2",
"@types/node": "^24.12.3",
"@types/picomatch": "^4.0.3",
"@types/stylus": "^0.48.43",
"@types/ws": "^8.18.1",
"@vitejs/release-scripts": "^1.7.0",
"eslint": "^9.39.4",
"eslint-plugin-import-x": "^4.16.2",
"eslint-plugin-n": "^17.24.0",
"eslint-plugin-n": "^18.0.1",
"eslint-plugin-regexp": "^3.1.0",
"execa": "^9.6.1",
"globals": "^17.6.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/create-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@vercel/detect-agent": "^1.2.3",
"cross-spawn": "^7.0.6",
"mri": "^1.2.0",
"tsdown": "^0.21.10"
"tsdown": "^0.22.0",
"unrun": "^0.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-lit-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"devDependencies": {
"typescript": "~6.0.2",
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"lit": "^3.3.2"
},
"devDependencies": {
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
4 changes: 2 additions & 2 deletions packages/create-vite/template-preact-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
"devDependencies": {
"@preact/preset-vite": "^2.10.5",
"@types/node": "^24.12.2",
"@types/node": "^24.12.3",
"typescript": "~6.0.2",
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
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 @@ -13,6 +13,6 @@
},
"devDependencies": {
"@preact/preset-vite": "^2.10.5",
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
4 changes: 2 additions & 2 deletions packages/create-vite/template-qwik-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"preview": "serve dist"
},
"devDependencies": {
"@types/node": "^24.12.2",
"@types/node": "^24.12.3",
"serve": "^14.2.6",
"typescript": "~6.0.2",
"vite": "^8.0.10"
"vite": "^8.0.11"
},
"dependencies": {
"@builder.io/qwik": "^1.19.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/template-qwik/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"serve": "^14.2.6",
"vite": "^8.0.10"
"vite": "^8.0.11"
},
"dependencies": {
"@builder.io/qwik": "^1.19.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/create-vite/template-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^24.12.2",
"@types/node": "^24.12.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
Expand All @@ -25,6 +25,6 @@
"globals": "^17.6.0",
"typescript": "~6.0.2",
"typescript-eslint": "^8.59.2",
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.6.0",
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
4 changes: 2 additions & 2 deletions packages/create-vite/template-solid-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"solid-js": "^1.9.12"
},
"devDependencies": {
"@types/node": "^24.12.2",
"@types/node": "^24.12.3",
"typescript": "~6.0.2",
"vite": "^8.0.10",
"vite": "^8.0.11",
"vite-plugin-solid": "^2.11.12"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"solid-js": "^1.9.12"
},
"devDependencies": {
"vite": "^8.0.10",
"vite": "^8.0.11",
"vite-plugin-solid": "^2.11.12"
}
}
6 changes: 3 additions & 3 deletions packages/create-vite/template-svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^7.1.1",
"@sveltejs/vite-plugin-svelte": "^7.1.2",
"@tsconfig/svelte": "^5.0.8",
"@types/node": "^24.12.2",
"@types/node": "^24.12.3",
"svelte": "^5.55.5",
"svelte-check": "^4.4.8",
"typescript": "~6.0.2",
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
4 changes: 2 additions & 2 deletions packages/create-vite/template-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^7.1.1",
"@sveltejs/vite-plugin-svelte": "^7.1.2",
"svelte": "^5.55.5",
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-vanilla-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
},
"devDependencies": {
"typescript": "~6.0.2",
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"preview": "vite preview"
},
"devDependencies": {
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
4 changes: 2 additions & 2 deletions packages/create-vite/template-vue-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"vue": "^3.5.34"
},
"devDependencies": {
"@types/node": "^24.12.2",
"@types/node": "^24.12.3",
"@vitejs/plugin-vue": "^6.0.6",
"@vue/tsconfig": "^0.9.1",
"typescript": "~6.0.2",
"vite": "^8.0.10",
"vite": "^8.0.11",
"vue-tsc": "^3.2.8"
}
}
2 changes: 1 addition & 1 deletion packages/create-vite/template-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^6.0.6",
"vite": "^8.0.10"
"vite": "^8.0.11"
}
}
3 changes: 2 additions & 1 deletion packages/plugin-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"devDependencies": {
"acorn": "^8.16.0",
"picocolors": "^1.1.1",
"tsdown": "^0.21.10",
"tsdown": "^0.22.0",
"unrun": "^0.3.0",
"vite": "workspace:*"
},
"compatiblePackages": {
Expand Down
8 changes: 4 additions & 4 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@
"@types/escape-html": "^1.0.4",
"@types/pnpapi": "^0.0.5",
"@vitest/utils": "4.1.5",
"@vitejs/devtools": "^0.1.19",
"@vitejs/devtools": "^0.1.21",
"artichokie": "^0.4.3",
"baseline-browser-mapping": "^2.10.27",
"baseline-browser-mapping": "^2.10.29",
"cac": "^7.0.0",
"chokidar": "^3.6.0",
"connect": "^3.7.0",
Expand Down Expand Up @@ -127,14 +127,14 @@
"postcss-modules": "^6.0.1",
"premove": "^4.0.0",
"resolve.exports": "^2.0.3",
"rolldown-plugin-dts": "^0.24.1",
"rolldown-plugin-dts": "^0.25.0",
"rollup": "^4.59.0",
"rollup-plugin-license": "^3.7.1",
"sass": "^1.99.0",
"sass-embedded": "^1.99.0",
"sirv": "^3.0.2",
"strip-literal": "^3.1.0",
"terser": "^5.46.2",
"terser": "^5.47.1",
"ufo": "^1.6.4",
"ws": "^8.20.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/vite/src/node/__tests__/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ describe('resolveBuildOutputs', () => {
const resolveBuild = () => resolveBuildOutputs(outputs, libOptions, logger)

expect(resolveBuild).toThrowError(
/Entries in "build\.rollupOptions\.output" must specify "name"/,
/Entries in "build\.rolldownOptions\.output" must specify "name"/,
)
})

Expand All @@ -375,7 +375,7 @@ describe('resolveBuildOutputs', () => {
const resolveBuild = () => resolveBuildOutputs(outputs, libOptions, logger)

expect(resolveBuild).toThrowError(
/Entries in "build\.rollupOptions\.output" must specify "name"/,
/Entries in "build\.rolldownOptions\.output" must specify "name"/,
)
})
})
Expand Down Expand Up @@ -702,7 +702,7 @@ describe('resolveBuildOutputs', () => {
).toEqual([{ name: 'A' }])
expect(log.warn).toHaveBeenLastCalledWith(
colors.yellow(
`"build.lib.formats" will be ignored because "build.rollupOptions.output" is already an array format.`,
`"build.lib.formats" will be ignored because "build.rolldownOptions.output" is already an array format.`,
),
)
})
Expand Down
Loading
Loading