diff --git a/node-swc/src/types.ts b/node-swc/src/types.ts index ed790d11150..717c64b6205 100644 --- a/node-swc/src/types.ts +++ b/node-swc/src/types.ts @@ -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]> }, baseUrl?: string