11plugins {
2- id(" org.jetbrains.kotlin.js" ) version " 1.3.70-eap-184 "
2+ id(" org.jetbrains.kotlin.js" ) version " 1.4.0 "
33}
44
55group = " org.example"
@@ -12,28 +12,33 @@ repositories {
1212 jcenter()
1313}
1414
15+ kotlin {
16+ js {
17+ browser {}
18+ binaries.executable()
19+ }
20+ }
21+
1522dependencies {
1623 implementation(kotlin(" stdlib-js" ))
1724
1825 // React, React DOM + Wrappers (chapter 3)
19- implementation(" org.jetbrains:kotlin-react:16.13.0 -pre.94 -kotlin-1.3.70 " )
20- implementation(" org.jetbrains:kotlin-react-dom:16.13.0 -pre.94 -kotlin-1.3.70 " )
26+ implementation(" org.jetbrains:kotlin-react:16.13.1 -pre.110 -kotlin-1.4.0 " )
27+ implementation(" org.jetbrains:kotlin-react-dom:16.13.1 -pre.110 -kotlin-1.4.0 " )
2128 implementation(npm(" react" , " 16.13.1" ))
2229 implementation(npm(" react-dom" , " 16.13.1" ))
2330
2431 // Kotlin Styled (chapter 3)
25- implementation(" org.jetbrains:kotlin-styled:1.0.0-pre.94 -kotlin-1.3.70 " )
26- implementation(npm(" styled-components" ))
27- implementation(npm(" inline-style-prefixer" ))
32+ implementation(" org.jetbrains:kotlin-styled:1.0.0-pre.110 -kotlin-1.4.0 " )
33+ implementation(npm(" styled-components" , " ~5.1.1 " ))
34+ implementation(npm(" inline-style-prefixer" , " ~6.0.0 " ))
2835
2936 // Video Player (chapter 7)
30- implementation(npm(" react-player" ))
37+ implementation(npm(" react-player" , " ~2.6.0 " ))
3138
3239 // Share Buttons (chapter 7)
33- implementation(npm(" react-share" ))
40+ implementation(npm(" react-share" , " ~4.2.1 " ))
3441
3542 // Coroutines (chapter 8)
36- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.5" )
37- }
38-
39- kotlin.target.browser { }
43+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9" )
44+ }
0 commit comments