Skip to content

Commit

Permalink
Vite. Fix compilation tasks linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
porotkin committed Sep 2, 2024
1 parent d0b9165 commit a089010
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ class ApplicationPlugin : Plugin<Project> {

applyKotlinMultiplatformPlugin(APPLICATION(bundler))

val productionTask = if (bundler == Webpack) Webpack.productionTask else Vite.productionTask
val developmentTask = if (bundler == Webpack) Webpack.developmentTask else Vite.developmentTask

linkWithModuleCompilation(productionTask, COMPILE_PRODUCTION)
linkWithModuleCompilation(developmentTask, COMPILE_DEVELOPMENT)
linkWithModuleCompilation(bundler.productionTask, COMPILE_PRODUCTION)
linkWithModuleCompilation(bundler.developmentTask, COMPILE_DEVELOPMENT)

plugins.apply(BundlePlugin::class)
}
Expand Down

0 comments on commit a089010

Please sign in to comment.