plugins {
id("io.github.turansky.kfc.application") version "16.1.0"
}- Kotlin/JS
- Target
es2015 - Granularity
per-file- Default
- Required for lazy modules, workers, worklets support
whole-program- Set
kfc.per.file=falseto activate - Recommended for isolated single file applications
- Set
- Target
We use Vite with Rolldown
You can add your custom vite.config.mjs (example)
-
Add
index.htmlfile with module script to JS entrypoint (example) -
Specify custom config file with
roottokotlin(example) -
Start a dev server, run
jsViteRuntask (example)
Enable source maps generation:
kfc.source.maps=true