Is there a way to rename the exported module, or m...
# javascript
a
Is there a way to rename the exported module, or make them top level?
t
Exported module:
Copy code
js {
    moduleName = "your-module-name"
}
šŸ‘ 1
Top level:
Copy code
// webpack.config.d/patch.js

delete config.output.library
šŸ‘€ 1
a
Didn't understood about top-level exports šŸ¤”
moduleName = ""
in buildscript complaints:
Copy code
warning Missing name in workspace at ..., ignoring.
t
moduleName could’t be empty
šŸ‘€ 1
a
Hm wait, it doesn't make exported symbols top-level
t
You can use webpack patch for ā€œtop levelā€ or wait Kotlin
1.4.30
, when Gradle API will be fixed
a
it just renames the final name of js file
they're still under same packages šŸ˜›
This one?
a
Yep!