I would like to use compose animations core dependency in my wasmJs compose-runtime based application (not compose-web). I don't draw on canvas, I don't want nor need skiko and I have disabled unpacking it with compose {} dsl in gradle. But when adding org.jetbrains.compose.animation:animation-core dependency I can't build my project with this error:
Module not found: Error: Can't resolve './skiko.mjs'
It works ok when I allow generation of skiko.wasm, but I don't want to load almost 9MB of unused (?) code. The same project builds fine and works without skiko when targeting js (my animations work without skiko).
I've used webpack.NormalModuleReplacementPlugin to replace skiko.mjs with some fake, empty module. It allowed me to build my app for both dev and prod, but the development version crashes with a runtime error import object field 'org_jetbrains_skia_Bitmap__1nMake' is not a Function. The production version (processed with binaryen) works fine.
I would like to use compose animations core dependency in my
wasmJs
compose-runtime based application (not compose-web). I don't draw on canvas, I don't want nor need skiko and I have disabled unpacking it withcompose {}
dsl in gradle. But when addingorg.jetbrains.compose.animation:animation-core
dependency I can't build my project with this error:It works ok when I allow generation of
skiko.wasm
, but I don't want to load almost 9MB of unused (?) code. The same project builds fine and works without skiko when targeting js (my animations work without skiko).I've used
webpack.NormalModuleReplacementPlugin
to replaceskiko.mjs
with some fake, empty module. It allowed me to build my app for both dev and prod, but the development version crashes with a runtime errorimport object field 'org_jetbrains_skia_Bitmap__1nMake' is not a Function
. The production version (processed with binaryen) works fine.