Skip to content

Commit b0a0c3a

Browse files
committed
Replace wgsl-tool with wgsl-wasm-transpiler-bundler in typegpu-docs
1 parent 7c9546b commit b0a0c3a

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

apps/typegpu-docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"typescript": "catalog:types",
5454
"unplugin-typegpu": "workspace:*",
5555
"wgpu-matrix": "catalog:example",
56-
"wgsl-tool": "workspace:*"
56+
"wgsl-wasm-transpiler-bundler": "^0.0.1"
5757
},
5858
"devDependencies": {
5959
"@observablehq/plot": "^0.6.17",

apps/typegpu-docs/src/pages/translator/lib/wgslTool.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { compileShader, getSupportedFormats, init } from 'wgsl-tool';
1+
import {
2+
compileShader,
3+
getSupportedFormats,
4+
init,
5+
} from 'wgsl-wasm-transpiler-bundler';
26

37
/** Normalize any thrown value into a readable string */
48
export function getErrorMessage(err: unknown): string {

pnpm-lock.yaml

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)