Skip to content

Interface: EmittedChunk

Either a name or a fileName can be supplied. If a fileName is provided, it will be used unmodified as the name of the generated file, throwing an error if this causes a conflict. Otherwise, if a name is supplied, this will be used as substitution for [name] in the corresponding output.chunkFileNames pattern, possibly adding a unique number to the end of the file name to avoid conflicts. If neither a name nor fileName is supplied, a default name will be used.

Properties

fileName?

  • Type: string
  • Optional

id

  • Type: string

The module id of the entry point of the chunk.

It will be passed through build hooks just like regular entry points, starting with resolveId.


importer?

  • Type: string
  • Optional

The value to be passed to resolveId's importer parameter when resolving the entry point. This is important to properly resolve relative paths. If it is not provided, paths will be resolved relative to the current working directory.


name?

  • Type: string
  • Optional

preserveSignature?

  • Type: false | "strict" | "allow-extension" | "exports-only"
  • Optional

When provided, this will override preserveEntrySignatures for this particular chunk.


type

  • Type: "chunk"