PluginImport
An import a plugin adds to the modules it changes.
An import a plugin adds to the modules it changes.
Import#
ts
import type { PluginImport } from "@shadow-js/compiler";
Signature#
ts
interface PluginImport {
/** The module specifier, such as `"@my/i18n"`. */
readonly from: string;
/** The names imported from it (`"default"` for the default export, `"*"` for a namespace). */
readonly names: readonly string[];
}
Members#
| Name | Type | Description |
|---|---|---|
from |
readonly from: string |
The module specifier, such as "@my/i18n". |
names |
readonly names: readonly string[] |
The names imported from it ("default" for the default export, "*" for a namespace). |