Reuben Firmin
01/04/2024, 8:30 PMReuben Firmin
01/04/2024, 8:31 PMpackage rcp.view
...
@OptIn(ExperimentalJsExport::class)
@JsExport
class Recipe {
Reuben Firmin
01/04/2024, 8:32 PMrecipe.rcp.view.Recipe();
when running via webpack, the "recipe" namespace is changed to "rcp", so this becomes:
rcp.rcp.view.Recipe();
Reuben Firmin
01/04/2024, 8:32 PMturansky
01/04/2024, 9:08 PManything prefixing the packageIn UMD - it's your library name
Reuben Firmin
01/04/2024, 9:21 PMReuben Firmin
01/04/2024, 9:22 PMturansky
01/04/2024, 9:33 PMwhere is this specified in the project?AFAIK In webpack task
Reuben Firmin
01/04/2024, 10:22 PMwebpackTask {
output.libraryTarget = "umd2"
}
at least makes the namespace consistent. whatever the default is seems to differ