0

I want to incude javascript dependencies in my kotlinjs project. (concret : https://airbnb.io/polyglot.js/ but others as well).

My kotlinjs Project is a gradle Project, developed in IntelliJ Idea.

I've searched one day now, but I wasn't able to find any clue, how I can add this dependency and work with the methods from the js library.

Is it even possible? It should, shouldn't it?

1 Answer 1

0

kotlin-frontend-plugin can add npm dependencies from Gradle:

kotlinFrontend {
    npm {
        dependency "style-loader" // production dependency
        devDependency "karma"     // development dependency
    }
}
Sign up to request clarification or add additional context in comments.

1 Comment

Isn't the frontend plugin obsolete?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.