Update docs (#1082)

This commit is contained in:
강동윤 2020-09-18 14:04:48 +09:00 committed by GitHub
parent 24c597f097
commit cfca078aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,6 +306,8 @@ export interface EsParserConfig {
jsx?: boolean;
/**
* Defaults to `false`.
*
* @deprecated Always true because it's in ecmascript spec.
*/
numericSeparator?: boolean;
/**
@ -314,6 +316,8 @@ export interface EsParserConfig {
classPrivateProperty?: boolean;
/**
* Defaults to `false`
*
* @deprecated Always true because it's in ecmascript spec.
*/
privateMethod?: boolean;
/**
@ -338,8 +342,22 @@ export interface EsParserConfig {
dynamicImport?: boolean;
/**
* Defaults to `false`
*
* @deprecated Always true because it's in ecmascript spec.
*/
nullishCoalescing?: boolean;
/**
* Defaults to `false`
*/
exportDefaultFrom?: boolean,
/**
* Defaults to `false`
*/
exportNamespaceFrom?: boolean,
/**
* Defaults to `false`
*/
importMeta?: boolean,
}
/**
@ -357,6 +375,16 @@ export interface TransformConfig {
* Defaults to null, which skips optimizer pass.
*/
optimizer?: OptimizerConfig;
/**
* https://swc-project.github.io/docs/configuring-swc.html#jsctransformlegacydecorator
*/
legacyDecorator?: boolean
/**
* https://swc-project.github.io/docs/configuring-swc.html#jsctransformdecoratormetadata
*/
decoratorMetadata?: boolean
}
export interface ReactConfig {
@ -408,8 +436,12 @@ export interface ConstModulesConfig {
};
}
/// https://swc-project.github.io/docs/configuring-swc.html#jsctransformoptimizerjsonify
export interface OptimizerConfig {
/// https://swc-project.github.io/docs/configuring-swc.html#jsctransformoptimizerglobals
globals?: GlobalPassOption;
/// https://swc-project.github.io/docs/configuring-swc.html#jsctransformoptimizerjsonify
jsonify?: { minCost: number }
}
/**