Skip to content

Instantly share code, notes, and snippets.

@miquelbeltran
Created March 19, 2017 17:40
Show Gist options
  • Select an option

  • Save miquelbeltran/f0040c575b040cc5ed8565f8a3e09738 to your computer and use it in GitHub Desktop.

Select an option

Save miquelbeltran/f0040c575b040cc5ed8565f8a3e09738 to your computer and use it in GitHub Desktop.
group 'node-example'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.1.1'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin2js'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
}
compileKotlin2Js.kotlinOptions {
moduleKind = "commonjs"
outputFile = "node/index.js"
}
@pantos27
Copy link

What could cause compileKotlin2Js.kotlinOptions to be unrecognized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment