Repository navigation
Fix: Unpack the Skiko web runtime for Skiko versions without a skiko-runtime variant - #69
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
With plugin org.thisisthepy.compose 1.11.1-ext.1 and ext.2 and libraries 1.11.1-ext.2,
unpackSkikoRuntimeForWasmJssucceeds with an empty output andwasmJsBrowserProductionWebpackfails withCan't resolve './skiko.mjs'.Cause
skiko-runtimefrom 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.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:
:unpackSkikoRuntimeForWasmJsgives skiko.mjs, skiko.wasm, skikod8.mjs, js-reexport-symbols.mjs;:wasmJsBrowserProductionWebpackBUILD SUCCESSFUL. Existing integration tests skikoWasm / skikoRuntimeFromTestCompilation cover it; not run here (heavy). Needs a plugin release after ext.2.