Robert Jaros
08/24/2025, 3:27 PMRobert Jaros
08/24/2025, 3:30 PMviteCompileDev task rebuilds the app. I think this part works correctly. But then the viteRun task reloads the page and it lasts a few secods. There are lot of lines like this printed:
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/Debug.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/SchedulerTask.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/flow/FlowCollector.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/flow/Limit.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/flow/Flow.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs
17:21:31 [vite] (client) page reload kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjsRobert Jaros
08/24/2025, 3:34 PMRobert Jaros
08/24/2025, 3:36 PMRobert Jaros
08/24/2025, 3:44 PMRobert Jaros
08/24/2025, 3:48 PMRobert Jaros
08/24/2025, 4:04 PMRobert Jaros
08/24/2025, 4:11 PMRobert Jaros
08/24/2025, 4:11 PMRobert Jaros
08/24/2025, 4:12 PMCLOVIS
08/24/2025, 4:26 PMThere is no single bundle. The browser loads all these scripts separately.To my knowledge, this is the expected behavior, and the initial idea behind Vite in the first place: since the browser understands ESM, why not just give all the files to the browser directly and not really have any middleman at all? In theory it shouldn't be possible to be faster than this. However I think there may be something wrong if it's reloading files that haven't changed… If the repo you're testing it on is public, that would help a lot!
CLOVIS
08/24/2025, 4:27 PMCLOVIS
08/24/2025, 4:37 PMCLOVIS
08/25/2025, 6:49 PMes2015 , I don't understand what's going wrong. Even a workaround would help me a lot.CLOVIS
08/25/2025, 8:33 PMRobert Jaros
08/26/2025, 8:56 AMKotlinPackageJsonTask task because of KotlinNpmResolutionManager property. Maybe because the resolutions (npm pacakges) are now conditionally applied.CLOVIS
08/29/2025, 10:03 AM