Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
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

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

        AltStyle によって変換されたページ (->オリジナル) /