Dave
01/31/2024, 10:11 AMjs {
binaries.executable()
browser {
webpackTask {
mainOutputFileName = "${project.group}-${project.name}.js"
}
}
}
Which works, the output file has the new name.
However, inside the file the UMD section at the top refers to the old (original) module name
and, it is not found when running the code.
Is this a bug, or have I missed something?
thanks
I've also tried with
js(IR) {
moduleName = "${project.group}-${project.name}"
but that gives the same result.turansky
01/31/2024, 10:15 AMDave
01/31/2024, 10:28 AMDave
01/31/2024, 10:28 AMwebpackTask {
output.library = "${project.group}-${project.name}"
mainOutputFileName = "${project.group}-${project.name}.js"
}
Dave
01/31/2024, 10:29 AMturansky
01/31/2024, 10:32 AMturansky
01/31/2024, 10:32 AMmodule
is what you need