Skip to content

Commit ffcb227

Browse files
committed
Move the ES2015 compilation target setting to the demo project because it's only needed in the app project
The `app.js` bundle size is still the reduced one 1.1 MiB after this change.
1 parent e91897a commit ffcb227

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

buildSrc/src/main/kotlin/common-conventions.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ kotlin {
3838
js {
3939
// The project works without this, but it can be added to avoid potential issues.
4040
browser()
41-
42-
compilerOptions {
43-
target.set("es2015")
44-
}
4541
}
4642

4743

demo/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ kotlin {
4040
}
4141
}
4242
binaries.executable()
43+
44+
compilerOptions {
45+
target.set("es2015")
46+
}
4347
}
4448

4549
sourceSets {

0 commit comments

Comments
 (0)