Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.
This repository was 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

Description

@darren-bell-nanthealth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions