fix(node-swc): Fix outdated types (#1621)

This commit is contained in:
LongYinan 2021-04-30 11:20:21 +08:00 committed by GitHub
parent 5a0bacb5b8
commit e9d58fa002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,17 +204,15 @@ export interface Config {
/**
* - true to generate a sourcemap for the code and include it in the result object.
* - "inline" to generate a sourcemap and append it as a data URL to the end of the code, but not include it in the result object.
* - "both" is the same as inline, but will include the map in the result object.
*
* `swc-cli` overloads some of these to also affect how maps are written to disk:
*
* - true will write the map to a .map file on disk
* - "inline" will write the file directly, so it will have a data: containing the map
* - "both" will write the file with a data: URL and also a .map.
* - Note: These options are bit weird, so it may make the most sense to just use true
* and handle the rest in your own code, depending on your use case.
*/
sourceMaps?: boolean | "inline" | "both";
sourceMaps?: boolean | "inline";
}
/**