Grantas33
03/05/2020, 10:58 PMGrantas33
03/05/2020, 11:00 PMIlya Goncharov [JB]
03/06/2020, 8:24 AMbrowser()
it build bundle with all dependencies included in build/distributions
By default it produces umd
format
For worker you may need something else, maybe webpack default
So you can override it with
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackOutput.Target
kotlin {
target {
browser {
webpackTask {
output.libraryTarget = Target.VAR
output.library = "something" // while you define var name of js it should be valid js name, which you project name may not satisfy
}
}
}
}
Grantas33
03/06/2020, 9:23 PM