Skip to content

pantoken-root / tools/aggregate/src / Target

Interface: Target ​

Beta

A target discovered by its pantoken field.

Properties ​

pkg ​

pkg: string

Beta

The package name, e.g. @pantoken/astro.


key ​

key: string

Beta

The aggregation key / export name, e.g. astro.


kind ​

kind: "namespace" | "sideEffect" | "subpath"

Beta

How the target is exposed:

  • namespace — re-exported into the eager barrel and as a subpath.
  • sideEffect — subpath imports the package's /inject entry; also in the barrel.
  • subpath — subpath only, kept OUT of the eager barrel (for heavy peers like React, so import "pantoken" never loads them).