@prismshadow/penguin-library-plugin · library/plugin/src/ports.ts:17

PluginHmr

interface

The hot-update control object, as far as the plugin domain reads it (the server's Hmr satisfies this structurally).

API

@Interface()
export abstract class PluginHmr {
  abstract resources: Resources;
  abstract assetsDir(): string | null;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Useconsumed by (1)

Members (2)

resources

resources: Resources

The registry resources of the running App (the plugin host is claimed through it).

assetsDir

assetsDir(): string | null

The pushed bundle's assets directory, null when this process was not pushed.

@returnsstring | null