You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b675c7b
Browse filesBrowse the repository at this point in the historyBrowse files
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:
24
+
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:
25
25
26
26
```js
27
27
import'vite/modulepreload-polyfill'
@@ -269,7 +269,7 @@ When the value is a string, it will be used as the manifest file path relative t
269
269
-**Default:**`false`
270
270
-**Related:**[Server-Side Rendering](/guide/ssr)
271
271
272
-
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`.
272
+
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`.
Copy file name to clipboardExpand all lines: docs/config/dep-optimization-options.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Unless noted, the options in this section are only applied to the dependency opt
8
8
9
9
-**Type:**`string | string[]`
10
10
11
-
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.
11
+
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.
12
12
13
13
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`.
Copy file name to clipboardExpand all lines: docs/config/server-options.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -433,7 +433,7 @@ export default defineConfig({
433
433
434
434
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/).
435
435
436
-
`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.
436
+
`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.
437
437
438
438
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.
439
439
@@ -450,5 +450,5 @@ export default defineConfig({
450
450
```
451
451
452
452
::: tip Note
453
-
[`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.
453
+
[`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.
Copy file name to clipboardExpand all lines: docs/config/shared-options.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ When `find` is a regular expression, the `replacement` can use [replacement patt
145
145
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).
146
146
147
147
:::warning SSR + ESM
148
-
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.
148
+
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.
Copy file name to clipboardExpand all lines: docs/guide/backend-integration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ If you need a custom integration, you can follow the steps in this guide to conf
21
21
build: {
22
22
// generate .vite/manifest.json in outDir
23
23
manifest:true,
24
-
rollupOptions: {
24
+
rolldownOptions: {
25
25
// overwrite default .html entry
26
26
input:'/path/to/main.js',
27
27
},
@@ -179,7 +179,7 @@ If you need a custom integration, you can follow the steps in this guide to conf
179
179
```
180
180
181
181
Each entry in the manifest represents one of the following:
182
-
-**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.
182
+
-**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.
183
183
-**Dynamic entry chunks**: Generated from dynamic imports. These chunks have `isDynamicEntry: true` and their key is the relative src path from project root.
184
184
-**Non-entry chunks**: Their key is the base name of the generated file prefixed with `_`.
185
185
-**Asset chunks**: Generated from imported assets like images, fonts. Their key is the relative src path from project root.
Copy file name to clipboardExpand all lines: packages/vite/src/node/build.ts
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -669,21 +669,21 @@ export function resolveRolldownOptions(
669
669
// @ts-expect-error See https://github.com/vitejs/vite/issues/5812#issuecomment-984345618
670
670
if(output.output){
671
671
logger.warn(
672
-
`You've set "rollupOptions.output.output" in your config. `+
672
+
`You've set "rolldownOptions.output.output" in your config. `+
673
673
`This is deprecated and will override all Vite.js default output options. `+
674
-
`Please use "rollupOptions.output" instead.`,
674
+
`Please use "rolldownOptions.output" instead.`,
675
675
)
676
676
}
677
677
if(output.file){
678
678
thrownewError(
679
-
`Vite does not support "rollupOptions.output.file". `+
680
-
`Please use "rollupOptions.output.dir" and "rollupOptions.output.entryFileNames" instead.`,
679
+
`Vite does not support "rolldownOptions.output.file". `+
680
+
`Please use "rolldownOptions.output.dir" and "rolldownOptions.output.entryFileNames" instead.`,
681
681
)
682
682
}
683
683
if(output.sourcemap){
684
684
logger.warnOnce(
685
685
colors.yellow(
686
-
`Vite does not support "rollupOptions.output.sourcemap". `+
686
+
`Vite does not support "rolldownOptions.output.sourcemap". `+
687
687
`Please use "build.sourcemap" instead.`,
688
688
),
689
689
)
@@ -1037,7 +1037,7 @@ export function resolveBuildOutputs(
1037
1037
if(libOptions.formats){
1038
1038
logger.warn(
1039
1039
colors.yellow(
1040
-
'"build.lib.formats" will be ignored because "build.rollupOptions.output" is already an array format.',
1040
+
'"build.lib.formats" will be ignored because "build.rolldownOptions.output" is already an array format.',
1041
1041
),
1042
1042
)
1043
1043
}
@@ -1048,7 +1048,7 @@ export function resolveBuildOutputs(
1048
1048
!output.name
1049
1049
){
1050
1050
thrownewError(
1051
-
'Entries in "build.rollupOptions.output" must specify "name" when the format is "umd" or "iife".',
1051
+
'Entries in "build.rolldownOptions.output" must specify "name" when the format is "umd" or "iife".',
1052
1052
)
1053
1053
}
1054
1054
})
@@ -1090,7 +1090,7 @@ export function onRollupLog(
1090
1090
`[vite]: Rolldown failed to resolve import "${exporter}" from "${id}".\n`+
1091
1091
`This is most likely unintended because it can break your application at runtime.\n`+
1092
1092
`If you do want to externalize this module explicitly add it to\n`+
0 commit comments