Edoardo Luppi
03/25/2024, 3:12 PMbrowser
and binaries.library()
the Webpack task is not executed, is it expected?Artem Kobzar
03/25/2024, 3:30 PMEdoardo Luppi
03/25/2024, 3:31 PMjsBrowserProductionLibraryDistribution
, so there is some JS outputArtem Kobzar
03/25/2024, 3:32 PMbinaries.library()
as an output?Edoardo Luppi
03/25/2024, 3:34 PMEdoardo Luppi
03/25/2024, 4:28 PMcompilation.binaries
.matching { it is Executable }
in KotlinBrowserJsIr.configureBuild
, so to some degree it looks like it's done on purposeIlya Goncharov [JB]
03/26/2024, 10:02 AMbinaries.library
to not prepare final bundle, but provide JavaScript library as set of files, webpack is expected to be executed on final phase in final applicationEdoardo Luppi
03/26/2024, 10:03 AMEdoardo Luppi
03/26/2024, 10:05 AMKotlinWebpack
tasks. Is that supposed to be possible, or is it just a hack?Ilya Goncharov [JB]
03/26/2024, 10:11 AMbinaries.executable
As for custom KotlinWebpack
task. Gradle is designed as system where there are many things are possible, so you can't forbidden create custom tasks of specific type. It is not designed by us for such purpose and we are not ready to deeply support such cases, but it is nature of Gradle, so I could not name it a hack, so users could create such tasks at their own riskEdoardo Luppi
03/26/2024, 10:14 AMbinaries.executable
looks like the better approach to avoid too many customizations.
As far as I understand tho, executable
doesn't output a package.json
, so using it for a library is by default not possible.
Or did I not configure it correctly?Ilya Goncharov [JB]
03/26/2024, 10:15 AMpublicPackageJson
which can produce it 🙂
But yes, for executable public package json was not supposed to be, because it is just working applicationEdoardo Luppi
03/26/2024, 10:18 AM