Skip to content

Fix: Unpack the Skiko web runtime for Skiko versions without a skiko-runtime variant - #69

Merged
b-re-w merged 1 commit into
extendedfrom
feat/skiko-runtime-fallback
Oct 25, 2026
Merged

b-re-w merged 1 commit into
extendedfrom
feat/skiko-runtime-fallback

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 25, 2026

Copy link
Copy Markdown
Member

Problem

With plugin org.thisisthepy.compose 1.11.1-ext.1 and ext.2 and libraries 1.11.1-ext.2, unpackSkikoRuntimeForWasmJs succeeds with an empty output and wasmJsBrowserProductionWebpack fails with Can't resolve './skiko.mjs'.

Cause

  • Library .module files are identical to upstream (both require skiko, skiko-js-wasm-runtime, skiko-wasm-js 0.144.6). The libraries are not at fault.
  • The plugin was built from upstream master (compose 1.12 dev, commit f637144 'Simplify Skiko runtime setup'), which requests usage skiko-runtime from skiko-wasm-js. Skiko 0.144.6 has no such variant (grep of skiko-wasm-js-0.144.6.module: none; 0.153.0 and 0.156.0 have it). skiko-js-wasm-runtime 0.144.6 on Central is pom + jar only, no .module.
  • Upstream release plugin 1.11.1 uses the older mechanism (unpackSkikoWasmRuntime with an explicit skiko-js-wasm-runtime dependency), so it works.

Fix

If the view is empty, resolve org.jetbrains.skiko:skiko-js-wasm-runtime:<skiko version on the runtime classpath> non-transitively. Newer Skiko is unchanged (view non-empty).

Verification

Plugin published to mavenLocal as 1.11.1-ext.2-dev, verification project with libs 1.11.1-ext.2: :unpackSkikoRuntimeForWasmJs gives skiko.mjs, skiko.wasm, skikod8.mjs, js-reexport-symbols.mjs; :wasmJsBrowserProductionWebpack BUILD SUCCESSFUL. Existing integration tests skikoWasm / skikoRuntimeFromTestCompilation cover it; not run here (heavy). Needs a plugin release after ext.2.

…n has no skiko-runtime variant

The fork plugin is built from upstream sources that look the runtime up through a
skiko-runtime usage variant of skiko-wasm-js. Skiko 0.144.6, which the 1.11.1-ext
libraries use, publishes no such variant (it first appears in 0.153.0) and publishes
skiko-js-wasm-runtime as a pom-only module, so the artifact view found nothing and
unpackSkikoRuntimeFor<Target> produced an empty directory. wasmJsBrowserProductionWebpack then
failed with: Can't resolve './skiko.mjs'.

When the view is empty, resolve org.jetbrains.skiko:skiko-js-wasm-runtime at the Skiko
version already on the runtime classpath. Covered by the existing skikoWasm and
skikoRuntimeFromTestCompilation integration tests.
@b-re-w
b-re-w merged commit 2bc9098 into extended Oct 25, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant