OptionalassumptionsSet assumptions in order to produce smaller output.
OptionalcwdThe current working directory. Used to resolve relative paths in other options.
OptionaldecoratorDecorator plugin
OptionaldefineDefine Plugin
OptionalhelpersBehaviour for runtime helpers.
OptionalinjectInject Plugin
OptionalinputAn input source map to collapse with the output source map.
OptionaljsxConfigure how TSX and JSX are transformed.
OptionallangTreat the source text as 'js', 'jsx', 'ts', 'tsx', or 'dts'.
OptionalpluginsThird-party plugins to use.
OptionalsourcemapEnable source map generation.
When true, the sourceMap field of transform result objects will be populated.
OptionalsourceTreat the source text as 'script', 'module', 'commonjs', or 'unambiguous'.
OptionaltargetSets the target environment for the generated JavaScript.
The lowest target is es2015.
Example:
'es2015'['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']OptionaltsconfigConfigure tsconfig handling.
OptionaltypescriptConfigure how TypeScript is transformed.
Options for transforming a code.