Skip to content

Commit 9c047b0

Browse files
rjarosCLOVIS-AI
authored andcommitted
fix(kotlin): Change the default target name to es2015
1 parent 10f151d commit 9c047b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vite-base/src/main/kotlin/config/ViteBuildConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface ViteBuildConfig {
2727
* ```kotlin
2828
* vite {
2929
* build {
30-
* target.set("modules")
30+
* target.set("es2015")
3131
* }
3232
* }
3333
* ```

vite-kotlin/src/main/kotlin/config/Defaults.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ internal fun ViteConfig.defaultConfiguration() {
99
plugin("@rollup/plugin-commonjs", "commonjs", "28.0.6")
1010

1111
// Build
12-
build.target.convention("modules")
12+
build.target.convention("es2015")
1313
build.modulePreload.convention(true)
1414
}

0 commit comments

Comments
 (0)