Open vmishenev opened 6 months ago
We can analyze Wasm as JS platform if Dokka passes all dependencies. However, it depends on the internals/implementation of Analysis API. Currently, it works. After https://youtrack.jetbrains.com/issue/KT-64984/Analysis-API-Support-Wasm-target, it would be better to use the analysis for the Wasm platform.
@vmishenev Probably this issue should not be closed. Upstream issue in AA was fixed and we now can fix it on our side.
Currently, Kotlin Wasm is Alpha. Dokka analyzes it as JS platform. Dokka K1 does the same.
It is blocked by https://youtrack.jetbrains.com/issue/KT-64984/Analysis-API-Support-Wasm-target (needs a
LLFirAbstractSessionFactory
implementation)Testing: ??
WasmJsWasiGradleIntegrationTest
will be passes if here https://github.com/Kotlin/dokka/blob/8e5c63d035ef44a269b8c43430f43f5c8eebfb63/dokka-integration-tests/gradle/projects/it-wasm-js-wasi-basic/src/wasmJsMain/kotlin/RootPackageClass.kt#L20 we removeAnchorHTMLAttributes
(no import for it) In Dokka K1AnchorHTMLAttributes
is just omittedParent: #3137