build: initialize JS target in root to fix isolated classpath issue

Explicitly added JS target with browser and Node.js configurations at the root level to ensure the NodeJsRootPlugin is loaded. Resolved the "IsolatedKotlinClasspathClassCastException" error in subprojects. Updated Yarn lock to reflect new dependencies.
This commit is contained in:
2026-02-03 15:02:26 +01:00
parent d923b10ca2
commit c613acb91d
4 changed files with 1020 additions and 33 deletions
+3 -6
View File
@@ -16,12 +16,9 @@ kotlin {
js {
binaries.library()
// Re-enabled browser environment after Root NodeJs fix
browser {
testTask {
enabled = false
}
}
// CHANGED: Use nodejs() instead of browser() to minimize NodeJsRootPlugin conflicts in Docker
// while still satisfying the "configured for JS usage" requirement.
nodejs()
}
sourceSets {