Skip to content

Commit 1d6143c

Browse files
feat: remove deprecated JS compiler option (#4635)
* update: remove deprecated JS compiler option * Update compatibility guide * Daniel review Co-authored-by: Dániel Csorba <[email protected]> * Daniel review Co-authored-by: Dániel Csorba <[email protected]> --------- Co-authored-by: Dániel Csorba <[email protected]>
1 parent 1dec680 commit 1d6143c

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

docs/topics/compatibility-guides/compatibility-guide-20.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,4 +688,21 @@ perspective
688688
> **Deprecation cycle**:
689689
>
690690
> - 1.3: the platform plugin IDs are deprecated
691-
> - 2.0.0: the platform plugin IDs are no longer supported
691+
> - 2.0.0: the platform plugin IDs are no longer supported
692+
693+
### Remove outputFile JavaScript compiler option
694+
695+
> **Issue**: [KT-61116](https://youtrack.jetbrains.com/issue/KT-61116)
696+
>
697+
> **Component**: Gradle
698+
>
699+
> **Incompatible change type**: source
700+
>
701+
> **Short summary**: The `outputFile` JavaScript compiler option has been removed. Instead, you can use the `destinationDirectory`
702+
> property of the `Kotlin2JsCompile` task to specify the directory where the compiled JavaScript output files
703+
> are written.
704+
>
705+
> **Deprecation cycle**:
706+
>
707+
> - 1.9.25: the `outputFile` compiler option is deprecated
708+
> - 2.0.0: the `outputFile` compiler option is removed

docs/topics/gradle/gradle-compiler-options.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ Note that with the Gradle Kotlin DSL, you should get the task from the project's
192192

193193
Use the `Kotlin2JsCompile` and `KotlinCompileCommon` types for JS and common targets, respectively.
194194

195+
You can see the list of JavaScript compilation tasks by running the `gradlew tasks --all` command in the terminal
196+
and searching for `compile*KotlinJS` task names in the `Other tasks` group.
197+
195198
## All Kotlin compilation tasks
196199

197200
It is also possible to configure all the Kotlin compilation tasks in the project:
@@ -367,7 +370,6 @@ Also, see [Types for compiler options](#types-for-compiler-options).
367370
| `main` | Define whether the `main` function should be called upon execution | "call", "noCall". Also, see [Types for compiler options](#types-for-compiler-options) | "call" |
368371
| `metaInfo` | Generate .meta.js and .kjsm files with metadata. Use to create a library | | true |
369372
| `moduleKind` | The kind of JS module generated by the compiler | "umd", "commonjs", "amd", "plain", "es". Also, see [Types for compiler options](#types-for-compiler-options) | "umd" |
370-
| `outputFile` | Destination *.js file for the compilation result | | "&lt;buildDir&gt;/js/packages/<project.name>/kotlin/<project.name>.js" |
371373
| `sourceMap` | Generate source map | | true |
372374
| `sourceMapEmbedSources` | Embed source files into the source map | "never", "always", "inlining". Also, see [Types for compiler options](#types-for-compiler-options) | |
373375
| `sourceMapNamesPolicy` | Add variable and function names that you declared in Kotlin code into the source map. For more information on the behavior, see our [compiler reference](compiler-reference.md#source-map-names-policy-simple-names-fully-qualified-names-no). | "simple-names", "fully-qualified-names", "no". Also, see [Types for compiler options](#types-for-compiler-options) | "simple-names" |

0 commit comments

Comments
 (0)