Skip to content

TypeScript API / @contentia/vite-plugin / chunkSpecifier

Function: chunkSpecifier() ​

ts
function chunkSpecifier(id): string;

The specifier the generated module imports the chunk by. Root-relative, which Vite resolves against the project root in both dev and build — a virtual module has no directory to resolve a relative path from.

Parameters ​

ParameterType
idContentiaId

Returns ​

string