Skip to content

Type Alias: CodeSplittingNameFunction ​

  • Type: (moduleId, ctx) => string | NullValue

Parameters ​

moduleId ​

string

ctx ​

getModuleInfo ​

(moduleId) => ModuleInfo | null

The returned object and its dependency arrays are reused within the current chunking pass. Treat graph fields as read-only. meta properties and the moduleSideEffects field remain mutable.

Returns ​

string | NullValue

Was this page helpful?