Module: @ima/plugin-cli
Interfaces
Type Aliases
Command
Ƭ Command: "dev"
| "link"
| "build"
Defined in
Plugin
Ƭ Plugin: (context
: Context
) => void
| Promise
<void
>
Type declaration
▸ (context
): void
| Promise
<void
>
Parameters
Name | Type |
---|---|
context | Context |
Returns
void
| Promise
<void
>
Defined in
Transformer
Ƭ Transformer: ({
source,
context,
}
: { context
: PipeContext
; source
: Source
}) => Source
| Promise
<Source
>
Type declaration
▸ ({
source,
context,
}
): Source
| Promise
<Source
>
Parameters
Name | Type |
---|
| {
source,
context,
}
| Object
|
| {
source,
context,
}.context
| PipeContext
|
| {
source,
context,
}.source
| Source
|
Returns
Defined in
TransformerOptions
Ƭ TransformerOptions: Object
Type declaration
Name | Type |
---|---|
test | RegExp |
Defined in
Variables
clientServerConfig
• Const
clientServerConfig: ImaPluginConfig
Defined in
defaultConfig
• Const
defaultConfig: ImaPluginConfig
Defined in
nodeConfig
• Const
nodeConfig: ImaPluginConfig
Defined in
Functions
preprocessTransformer
▸ preprocessTransformer(options
): Transformer
Parameters
Name | Type |
---|---|
options | PreprocessTransformerOptions |
Returns
Defined in
transformers/preprocessTransformer.ts:11
swcTransformer
▸ swcTransformer(options
): Transformer
Parameters
Name | Type |
---|---|
options | Options |
Returns
Defined in
transformers/swcTransformer.ts:59
typescriptDeclarationsPlugin
▸ typescriptDeclarationsPlugin(options
): Plugin
Parameters
Name | Type |
---|---|
options | TypescriptDeclarationsPluginOptions |