Kotlin / kotlin-frontend-plugin

Gradle Kotlin (http://kotlinlang.org) plugin for frontend development
Apache License 2.0
561 stars 69 forks source link

When using kotlin-multiplatform plugin doesn't handle project dependencies propetly #136

Open mpiniarski opened 5 years ago

mpiniarski commented 5 years ago

When using kotlin-multipatform adding dependency to project this way:

kotlin { 
        ...
        jsMain {
            dependencies {
                implementation project(':some-other-project')
                ...
            }
        }
}

should result in adding proper path to config.resolve.modules in webpack.config.js generated by plugin. It works perfectly for projects that don't use kotlin-multipatform and have dependency to other projects.

Now this path is not added and webpack cannot resolve some-other-project.js.

mpiniarski commented 5 years ago

up