Skip to content

Download slang wasm instead of including in the package#2

Open
jerzakm wants to merge 4 commits intoCodyJasonBennett:mainfrom
jerzakm:slang-update
Open

Download slang wasm instead of including in the package#2
jerzakm wants to merge 4 commits intoCodyJasonBennett:mainfrom
jerzakm:slang-update

Conversation

@jerzakm
Copy link
Copy Markdown

@jerzakm jerzakm commented Feb 19, 2026

I started using this vite plugin to test out the ergonomics of slang + webgpu + ts. Yesterday, before you updated the package the slang wasm was outdated and was producing wrong wgsl for me. I started looking into how slang is released and if instead this plugin could just download it from github releases.

I got it to work in such a way that:

  • user can provide their own binary OR
  • user can specify a slang version as a string, and vite plugin will download it to node_modules

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.

2 participants