entryFileNames
- Type:
string| ((chunkInfo) =>string) - Optional
The pattern to use for chunks created from entry points, or a function that is called per entry chunk with PreRenderedChunk to return such a pattern.
Patterns support the following placeholders:
[format]: The rendering format defined in the output options. The value is any ofInternalModuleFormat.[hash]: A hash based only on the content of the final generated chunk, including transformations inrenderChunkand any referenced file hashes. You can also set a specific hash length via e.g.[hash:10]. By default, it will create a base-64 hash. If you need a reduced character set, seeoutput.hashCharacters.[name]: The file name (without extension) of the entry point, unless the object form of input was used to define a different name.
Forward slashes (/) can be used to place files in sub-directories. This pattern will also be used for every file when setting the output.preserveModules option. Note that in this case, [name] will include the relative path from the output root and possibly the original file extension if it was not one of .js, .jsx, .mjs, .cjs, .ts, .tsx, .mts, or .cts.
See also output.assetFileNames, output.chunkFileNames.
Default
ts
'[name].js'