-
-
Notifications
You must be signed in to change notification settings - Fork 38
Compatibility with unwasm #71
Comments
Wasm will be loaded automatically from the binary on the main entry So I guess:
Happy to update the docs for sure! |
As an alternative to My hope with unwasm initiative is to push forward both tooling/libs and also end-users to adopt (ESM native) wasm without major changes. Otherwise it will be and Chicken-and-egg situation forever and we always have to deal with😆, so really hope to find a solution migrating major libs in ecosystem that require wasm dependencies toward a unified way, with less changes. |
@antfu Do you think we might be able to support |
Sorry, what are you proposing specifically? |
https://github.com/unjs/unwasm?tab=readme-ov-file#auto-imports For using shikiji with unwasm, ideally I love to see |
Oh I think I did that on purpose.
The reason we used I still do not fully understand what |
unjs/unwasm will be become soon the default wasm loaded for Nitro/Nuxt and already supported with shikiji!
Usage when unwasm enabled:
I am also wondering if we could remove the requirement of
loadWasm
entirely. Especially when import maps support lands (unjs/unwasm#10), we could directly provide those dependencies. For this we might supportshikiji/esm
that does not conflict with current subpath exports or breaking current users but a path to the future. Wdyt @antfu?TODO list:
shikiji/esm
The text was updated successfully, but these errors were encountered: