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
Copy file name to clipboardExpand all lines: docs/configuration-options/index.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1470,6 +1470,22 @@ The location of the generated bundle. If this is an absolute path, all the `sour
1470
1470
1471
1471
`sourcemapFile` is not required if`output` is specified, in which case an output filename will be inferred by adding ".map" to the output filename for the bundle.
The pattern to use for sourcemaps, or a function that is called per sourcemap to return such a pattern. Patterns support the following placeholders:
1481
+
1482
+
- `[format]`: The rendering format defined in the output options, e.g. `es` or `cjs`.
1483
+
- `[hash]`: A hash based only on the content of the final generated sourcemap. You can also set a specific hash length via e.g. `[hash:10]`.
1484
+
- `[chunkhash]`: The same hash as the one used for the corresponding generated chunk (ifany).
1485
+
- `[name]`: The file name (without extension) of the entry point, unless the object form of input was used to define a different name.
1486
+
1487
+
Forward slashes `/` can be used to place files in sub-directories. When using a function, `chunkInfo` is a reduced version of the one in [`generateBundle`](../plugin-development/index.md#generatebundle) without properties that depend on file names and no information about the rendered modules as rendering only happens after file names have been generated. You can however access a list of included `moduleIds`. See also [`output.assetFileNames`](#output-assetfilenames), [`output.chunkFileNames`](#output-chunkfilenames).
0 commit comments