EmitOptions
in package
TypeScript compiler options used when transpiling.
Table of Contents
Properties
- $emit_metadata : bool
- When emitting a legacy decorator, also emit experimental decorator meta data. Defaults to `false`.
- $inline_source_map : bool
- Should the source map be inlined in the emitted code file, or provided as a separate file. Defaults to `true`.
- $inline_sources : bool
- Should the sources be inlined in the source map. Defaults to `true`.
- $jsx_automatic : bool
- `true` if the program should use an implicit JSX import source/the "new" JSX transforms.
- $jsx_development : bool
- If JSX is automatic, if it is in development mode, meaning that it should import `jsx-dev-runtime` and transform JSX using `jsxDEV` import from the JSX import source as well as provide additional debug information to the JSX factory.
- $jsx_factory : string
- When transforming JSX, what value should be used for the JSX factory.
- $jsx_fragment_factory : string
- When transforming JSX, what value should be used for the JSX fragment factory. Defaults to `React.Fragment`.
- $jsx_import_source : string
- The string module specifier to implicitly import JSX factories from when transpiling JSX.
- $source_map : bool
- Should a corresponding .map file be created for the output. This should be false if inline_source_map is true. Defaults to `false`.
- $transform_jsx : bool
- Should JSX be transformed or preserved. Defaults to `true`.
- $var_decl_imports : bool
- Should import declarations be transformed to variable declarations using a dynamic import. This is useful for import & export declaration support in script contexts such as the Deno REPL. Defaults to `false`.
Methods
- __construct() : mixed
Properties
$emit_metadata
When emitting a legacy decorator, also emit experimental decorator meta data. Defaults to `false`.
public
bool
$emit_metadata
$inline_source_map
Should the source map be inlined in the emitted code file, or provided as a separate file. Defaults to `true`.
public
bool
$inline_source_map
$inline_sources
Should the sources be inlined in the source map. Defaults to `true`.
public
bool
$inline_sources
$jsx_automatic
`true` if the program should use an implicit JSX import source/the "new" JSX transforms.
public
bool
$jsx_automatic
$jsx_development
If JSX is automatic, if it is in development mode, meaning that it should import `jsx-dev-runtime` and transform JSX using `jsxDEV` import from the JSX import source as well as provide additional debug information to the JSX factory.
public
bool
$jsx_development
$jsx_factory
When transforming JSX, what value should be used for the JSX factory.
public
string
$jsx_factory
Defaults to React.createElement
.
$jsx_fragment_factory
When transforming JSX, what value should be used for the JSX fragment factory. Defaults to `React.Fragment`.
public
string
$jsx_fragment_factory
$jsx_import_source
The string module specifier to implicitly import JSX factories from when transpiling JSX.
public
string
$jsx_import_source
$source_map
Should a corresponding .map file be created for the output. This should be false if inline_source_map is true. Defaults to `false`.
public
bool
$source_map
$transform_jsx
Should JSX be transformed or preserved. Defaults to `true`.
public
bool
$transform_jsx
$var_decl_imports
Should import declarations be transformed to variable declarations using a dynamic import. This is useful for import & export declaration support in script contexts such as the Deno REPL. Defaults to `false`.
public
bool
$var_decl_imports
Methods
__construct()
public
__construct() : mixed