Closed devi-prsd closed 11 months ago
web-tree-sitter
is NOT WebAssembly esm-integration. Please follow its document to load it.
@Menci While I don't disagree it is being treated as such by vite, therefore I had to add this library. I have no control over it because it is a dependency of a dependency for swagger-editor, so If you have any help or idea on how to proceed with vite that would be grateful. I have a discord help post but no one has given me answers yet. Is this even viable with vite in the first place?
I'm trying to use https://swagger.io/docs/open-source-tools/swagger-editor-next/ some of the packages mentioned in there use web-tree-sitter which has its own wasm. I was suggested to use vite-plugin-wasm which then throws these errors