mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +03:00
Update docs (#1082)
This commit is contained in:
parent
24c597f097
commit
cfca078aa7
@ -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 }
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user