File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
main/kotlin/com/tschuchort/compiletesting
test/kotlin/com/tschuchort/compiletesting Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ class KotlinJsCompilation : AbstractKotlinCompilation<K2JSCompilerArguments>() {
3333 /* * Specify a compilation module name for IR backend */
3434 var irModuleName: String? = null
3535
36+ /* * Use deprecated legacy compiler without error */
37+ var useDeprecatedLegacyCompiler: Boolean = false
38+
3639 /* *
3740 * Path to the kotlin-stdlib-js.jar
3841 * If none is given, it will be searched for in the host
@@ -88,6 +91,7 @@ class KotlinJsCompilation : AbstractKotlinCompilation<K2JSCompilerArguments>() {
8891 args.irOnly = irOnly
8992 args.irModuleName = irModuleName
9093 args.generateDts = generateDts
94+ args.useDeprecatedLegacyCompiler = useDeprecatedLegacyCompiler
9195 }
9296
9397 /* * Runs the compilation task */
Original file line number Diff line number Diff line change @@ -15,11 +15,12 @@ fun defaultCompilerConfig(): KotlinCompilation {
1515}
1616
1717fun defaultJsCompilerConfig (): KotlinJsCompilation {
18- return KotlinJsCompilation ( ).apply {
18+ return KotlinJsCompilation ().apply {
1919 inheritClassPath = false
2020 verbose = true
2121 reportOutputFiles = false
2222 messageOutputStream = System .out
23+ useDeprecatedLegacyCompiler = true
2324 }
2425}
2526
You can’t perform that action at this time.
0 commit comments