peer Npm
Deprecated
Deprecated in favor of npmPeer
Replace with
npmPeer(name, version) /* must not be passed to the implementation(...) or api(...) calls */Content copied to clipboard
Deprecated - wrapping npm dependencies in implementation(peerNpm(...)) is deprecated. Declare them with npmPeer instead, as a standalone statement:
kotlin.sourceSets["jsMain"].dependencies {
npmPeer("is-odd-even", "1.1.0")
}Content copied to clipboard
Scheduled for removal in Kotlin 2.7.
Parameters
name
The NPM dependency name
version
The NPM dependency version