Add gc to wasm
This commit is contained in:
parent
4238dc5a43
commit
5463c9326b
@ -1,5 +1,5 @@
|
|||||||
[versions]
|
[versions]
|
||||||
tools = "0.14.9-kotlin-1.9.0-Beta"
|
tools = "0.14.9-kotlin-1.9.0-Beta-dev-3"
|
||||||
kotlin = "1.9.0-Beta"
|
kotlin = "1.9.0-Beta"
|
||||||
atomicfu = "0.20.2"
|
atomicfu = "0.20.2"
|
||||||
binary-compatibility-validator = "0.13.1"
|
binary-compatibility-validator = "0.13.1"
|
||||||
|
@ -437,7 +437,7 @@ public open class KScienceMppExtension(project: Project) : KScienceExtension(pro
|
|||||||
testTask {
|
testTask {
|
||||||
useKarma {
|
useKarma {
|
||||||
this.webpackConfig.experiments.add("topLevelAwait")
|
this.webpackConfig.experiments.add("topLevelAwait")
|
||||||
useChromeHeadless()
|
useChromeHeadlessWasmGc()
|
||||||
useConfigDirectory(project.projectDir.resolve("karma.config.d").resolve("wasm"))
|
useConfigDirectory(project.projectDir.resolve("karma.config.d").resolve("wasm"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,9 @@ import org.jetbrains.changelog.ChangelogPlugin
|
|||||||
import org.jetbrains.changelog.ChangelogPluginExtension
|
import org.jetbrains.changelog.ChangelogPluginExtension
|
||||||
import org.jetbrains.dokka.gradle.AbstractDokkaTask
|
import org.jetbrains.dokka.gradle.AbstractDokkaTask
|
||||||
import org.jetbrains.dokka.gradle.DokkaPlugin
|
import org.jetbrains.dokka.gradle.DokkaPlugin
|
||||||
|
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnLockMismatchReport
|
||||||
|
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
|
||||||
|
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
|
||||||
import space.kscience.gradle.internal.*
|
import space.kscience.gradle.internal.*
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -250,9 +253,11 @@ public open class KScienceProjectPlugin : Plugin<Project> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins.withType(org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin::class.java) {
|
plugins.withType<YarnPlugin>() {
|
||||||
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension>().lockFileDirectory =
|
rootProject.configure<YarnRootExtension> {
|
||||||
rootDir.resolve("gradle")
|
lockFileDirectory = rootDir.resolve("gradle")
|
||||||
|
yarnLockMismatchReport = YarnLockMismatchReport.WARNING
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user