fix(node-swc/types): Fix experimental config options (#3603)

This commit is contained in:
OJ Kwon 2022-02-16 21:41:51 -08:00 committed by GitHub
parent eb59f2a51d
commit 2b5eba16c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -498,7 +498,7 @@ export interface JscConfig {
* Currently only transform plugin uses this. If not specified, SWC will
* create `.swc` directories.
*/
cacheRoot: string;
cacheRoot?: string;
/**
* List of custom transform plugins written in WebAssembly.
* First parameter of tuple indicates the name of the plugin - it can be either
@ -506,7 +506,7 @@ export interface JscConfig {
*
* Second parameter of tuple is JSON based configuration for the plugin.
*/
plugins: Array<[string, Record<string, any>]>
plugins?: Array<[string, Record<string, any>]>
},
baseUrl?: string