Edoardo Luppi
10/06/2023, 10:43 PMandylamax
10/07/2023, 4:08 PMEdoardo Luppi
10/08/2023, 2:30 PMEdoardo Luppi
10/08/2023, 2:33 PMmain
functions, which are reported as conflicting.Edoardo Luppi
10/08/2023, 2:59 PMmain
functions (one per file in case of PER_FILE
granularity) be even possible?Edoardo Luppi
10/08/2023, 3:14 PMModule not found: Error: Can't resolve './background.mjs'With the following structure:
andylamax
10/09/2023, 9:19 AMArtem Kobzar
10/09/2023, 11:31 AMEdoardo Luppi
10/09/2023, 11:32 AMEdoardo Luppi
10/09/2023, 11:34 AMmain
didn't get the name I applied with JsFileName
, and instead kept the module one. Is this expected?
Name is `kjs-chrome-estension`but I did apply JsFileName("plugin")
Artem Kobzar
10/09/2023, 11:37 AMArtem Kobzar
10/09/2023, 11:42 AMkjs-chrome-extension.mjs
is a proxy file that exports all the JsExport declarations and runs all the module effects.
To rename this file, I believe, you should use `moduleName`:
// build.gradle.kts
...
js {
moduleName = "plugin"
...
}
...
Edoardo Luppi
10/09/2023, 11:44 AMJsFileName
, got it.Edoardo Luppi
10/09/2023, 11:46 AMArtem Kobzar
10/09/2023, 12:24 PMEdoardo Luppi
10/09/2023, 1:40 PMJsFileName
enables you to change the target directory.
This is valid for example: JsFileName("../another/name")
It is definitely useful to detach the target dir from the package name, but probably it should be implemented as a separate annotation. Or it should be easier to specify "relative to the root dir"Artem Kobzar
10/09/2023, 1:56 PMEdoardo Luppi
10/09/2023, 2:21 PM