Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Add a KotlinJS JAR as a NPM dependency #155

Open
darren-bell-nanthealth opened this issue Aug 26, 2019 · 0 comments
Open

Add a KotlinJS JAR as a NPM dependency #155

darren-bell-nanthealth opened this issue Aug 26, 2019 · 0 comments

Comments

@darren-bell-nanthealth
Copy link

The Kotlin Multiplatform Plugin generates JsJars. Unfortunately, there doesn't seem to be a straight forward way to reference that as an NPM dependency in the plugin. Something like:
kotlinFrontend { sourceMaps = true npm { dependency(":common") } }
There is another plugin https://github.com/svok/kotlin-jar2npm-plugin that looks like it should work. However, it seems to clash with the Multiplatform plugin.
Is there an alternative? Is there a way to reference the output? Something like:
kotlinFrontend { sourceMaps = true npm { dependency("file:../common/build/classes/js/main") }
I'm a bit stuck with this at the moment, any help would be gratefully recieved.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant