Skip to content

Newer generated files use module_or_path rather than input#39

Open
justindthomas wants to merge 4 commits intonshen:mainfrom
justindthomas:main
Open

Newer generated files use module_or_path rather than input#39
justindthomas wants to merge 4 commits intonshen:mainfrom
justindthomas:main

Conversation

@justindthomas
Copy link

It seems like wasm-bindgen may have changed at some point, but I can't identify a commit at that repository where that would be the case. Regardless, the .js files the newer versions generate seem to use module_or_path where they used input previously and that broke vite-plugin-wasm-pack. I adjusted the pattern to accommodate either situation.

I also incorporated a change from another fork to make incomingUrl more flexible. I'm not sure if that's necessary - I was grasping a bit at first since Svelte plugins are unfamiliar to me.

I also added some white space; the code felt cramped to me.

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