Hi, I'm changing the output filename of a JS build...
# javascript
d
Hi, I'm changing the output filename of a JS build using
Copy code
js {
        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
Copy code
js(IR) {
    moduleName = "${project.group}-${project.name}"
but that gives the same result.
t
d
thanks, that did it
Copy code
webpackTask {
                output.library = "${project.group}-${project.name}"
                mainOutputFileName = "${project.group}-${project.name}.js"
            }
now how to get webpack to produce an es6, .mjs file rather than a UMD module ?
Looks like
module
is what you need