File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,13 @@ apply from: rootProject.file('gradle/node-js.gradle')
6
6
7
7
kotlin {
8
8
js {
9
- // In 1.3.7x js() has not member `moduleName`
10
- // In 1.4.x it has and allow to safety set compiler output file name and does not break test integration
11
- if (it. hasProperty(" moduleName" )) {
12
- moduleName = project. name
13
- }
9
+ moduleName = project. name
14
10
15
- // In 1.3.7x js() has not member `irTarget`
16
11
// In 1.4.x it has in `both` and `legacy` mode and js() is of type `KotlinJsTarget`
17
12
// `irTarget` is non-null in `both` mode
18
13
// and contains appropriate `irTarget` with type `KotlinJsIrTarget`
19
14
// `irTarget` is null in `legacy` mode
20
- if (it. hasProperty( " irTarget " ) && it . irTarget != null ) {
15
+ if (it. irTarget != null ) {
21
16
irTarget. nodejs()
22
17
irTarget. compilations[' main' ]?. dependencies {
23
18
api " org.jetbrains.kotlinx:atomicfu-js:$atomicfu_version "
You can’t perform that action at this time.
0 commit comments