Cell API
    Preparing search index...

    Class ProjectLoader

    Builds the project model from package.json and cell*.yml files only. No project code runs, so it is cheap enough for cell info and editor tooling (docs/design/agent-first.md R2).

    Index
    env: Record<string, string | undefined>
    mode: string[]
    options: ProjectLoaderOptions = {}
    root: string
    • A filter naming a package that is not a component of the project is a mistake, not a no-op.

      Parameters

      • excluded: readonly string[]
      • components: { name: string }[]

      Returns void

    Protectedentry

    • The browser has no runtime environment, so frontend expressions are evaluated at build time.

      Parameters

      • target: Target
      • config: Record<string, unknown>

      Returns Record<string, unknown>

    • Parameters

      • target: Target
      • isStatic: boolean

      Returns ModuleRef[]

    • Every project has a backend; components add targets (@celljs/widget adds the frontend). Explicit targets replace both.

      Parameters

      Returns Target[]