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
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 or module code.
OptionaltargetSets the target environment for the generated JavaScript.
The lowest target is es2015.
Example:
'es2015'['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']OptionaltypescriptConfigure how TypeScript is transformed.
Options for transforming a JavaScript or TypeScript file.
See
transform