Join Slack
Powered by
Any example of using kotlin/js library in existing...
# javascript
g
Gordon
12/10/2022, 9:00 PM
Any example of using kotlin/js library in existing js project?
b
Big Chungus
12/10/2022, 11:13 PM
Here's a sample of linking and calling kotlin.js from ts app
https://github.com/mpetuska/npm-publish/tree/master/sandbox/ts-consumer
Big Chungus
12/10/2022, 11:15 PM
If you want to use external kjs lib (from mavenCentral) in your npm project then it's not doable directly. You'll need to setup gradle project to pull in and reexport kjs libs with your own wrapper layer using @JsExport annotations
g
Gordon
12/11/2022, 9:11 AM
Does this plugin help with name mangling issue?
b
Big Chungus
12/11/2022, 9:56 AM
No, it's just assembly, packaging and publishing
6
Views
Open in Slack
Previous
Next