mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 17:54:15 +03:00
refactor(node-swc/types): Provide typed configuration for plugins (#3584)
This commit is contained in:
parent
2ab99c7404
commit
07485d372e
@ -492,7 +492,21 @@ export interface JscConfig {
|
||||
|
||||
experimental?: {
|
||||
optimizeHygiene?: boolean,
|
||||
keepImportAssertions?: boolean
|
||||
keepImportAssertions?: boolean,
|
||||
/**
|
||||
* Specify the location where SWC stores its intermidiate cache files.
|
||||
* Currently only transform plugin uses this. If not specified, SWC will
|
||||
* create `.swc` directories.
|
||||
*/
|
||||
cacheRoot: string;
|
||||
/**
|
||||
* List of custom transform plugins written in WebAssembly.
|
||||
* First parameter of tuple indicates the name of the plugin - it can be either
|
||||
* a name of the npm package can be resolved, or absolute path to .wasm binary.
|
||||
*
|
||||
* Second parameter of tuple is JSON based configuration for the plugin.
|
||||
*/
|
||||
plugins: Array<[string, Record<string, any>]>
|
||||
},
|
||||
|
||||
baseUrl?: string
|
||||
|
Loading…
Reference in New Issue
Block a user