Skip to main content

newEntryPoint

Creates a new entry point This function can't be placed inside EntryPoint.js because that would create a circular import dependency

export function newEntryPoint(
  mainSrc: string | Source,
  moduleSrcs: string | Source[],
  validatorTypes: ScriptTypes,
  errorCollector: ErrorCollector
): EntryPoint

Arguments

NameTypeDescription
mainSrcstring | Source
moduleSrcsstring | Source[]optional sources of modules, which can be used for imports
validatorTypesScriptTypes
errorCollectorErrorCollector

Return value

EntryPoint