KotlinJsCompilerOptions
Compiler options for Kotlin/JS.
Properties
Report an error if there are any warnings.
Allow using declarations from only the specified version of bundled libraries.
Enable extra checkers for K2.
A list of additional compiler arguments
Disable internal declaration export.
Provide source compatibility with the specified version of Kotlin.
Specify whether the 'main' function should be called upon execution.
The kind of JS module generated by the compiler. ES modules are enabled by default in case of ES2015 target usage
Base name of generated files.
Enable API usages that require opt-in with an opt-in requirement marker with the given fully qualified name.
Enable progressive compiler mode. In this mode, deprecations and bug fixes for unstable code take effect immediately instead of going through a graceful migration cycle. Code written in progressive mode is backward compatible; however, code written without progressive mode enabled may cause compilation errors in progressive mode.
Embed source files into the source map.
Mode for mapping generated names to original names.
Add the specified prefix to the paths in the source map.
Don't generate any warnings.
This option does nothing and is left for compatibility with the legacy backend. It is deprecated and will be removed in a future release.
Let generated JavaScript code use ES2015 classes. Enabled by default in case of ES2015 target usage