0.9.2 • Kotlin 2.4.10, node_modules fix
Vite for Kotlin
- Fixed crash when the
node_modulessymlink was broken (437c9a25)
Build
Dependencies
- Kotlin 2.4.10
node_modules symlink was broken (437c9a25)vite-plugin-restart (only works with Vite 8+ in NPM mode) by vite-plugin-live-reload, which does (#75, !183, by Robert Jaros)dumpViteConfig to dump (d1c01218)kotlinViteExtension to kotlinViteConfig (ec1af490)The documentation website has been upgraded to the latest Material MkDocs version, and a bunch of new features have been enabled… Can you spot them all?
build/vite/dist to build/vite/js/dist.config.autoRewriteIndex option to more easily support mixed Webpack/Vite projects (#66, !124)This release updates the Vite version, and new Vite versions require a newer NodeJS version than the one shipped by default by the Kotlin Gradle Plugin.
For the build to work, you may need to upgrade the NodeJS version you're using as well.
To do so, open the root build.gradle.kts file and add:
project.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsPlugin> {
project.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsEnvSpec>().version = "24.12.0"
}
This information has also been added to the Troubleshooting section of the getting started guide.
:vitePreview task to serve the production output locally (66ba462a)"es2015" (9c047b0d)config.plugin()) which were not correctly applied (#65, !139)@rollup/plugin-commonjs and vite-plugin-top-level-await, as they are not needed with Vite 8. If you want to continue using Vite 7, you may need to explicitly add them to your build (!141)In this release, we have improved our automated test suites, which should make bugs rarer.
Thanks to Robert Jaros, the author of the KotlinJS frameworks Kilua and KVision, who contributed most of the improvements in this release. Since Kilua 0.0.27, you can also find our Vite plugin in the Kilua project creation wizard in IntelliJ!