Skip to content

Commit 8d21619

Browse files
authored
fix(docs): Make tsover-runtime importable in the translator app (#2310)
1 parent 183dc2b commit 8d21619

3 files changed

Lines changed: 11 additions & 37 deletions

File tree

apps/typegpu-docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@monaco-editor/react": "^4.7.0",
2626
"@radix-ui/react-select": "^2.2.6",
2727
"@radix-ui/react-slider": "^1.3.5",
28-
"@rolldown/browser": "1.0.0-beta.43",
28+
"@rolldown/browser": "1.0.0-rc.10",
2929
"@stackblitz/sdk": "^1.11.0",
3030
"@tailwindcss/vite": "^4.1.18",
3131
"@typegpu/color": "workspace:*",

apps/typegpu-docs/src/components/translator/lib/tgslExecutor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { SANDBOX_MODULES } from '../../../utils/examples/sandboxModules.ts';
55

66
const moduleImports = {
77
'typed-binary': 'https://esm.sh/typed-binary@latest',
8+
'tsover-runtime': 'https://esm.sh/tsover-runtime@latest',
89
} as Record<string, string>;
910

1011
type TgslModule = Record<string, unknown>;
@@ -30,7 +31,7 @@ async function executeTgslModule(tgslCode: string): Promise<TgslModule> {
3031
['./index.ts'],
3132
{
3233
plugins: [rolldownPlugin({})],
33-
external: ['typed-binary'],
34+
external: ['typed-binary', 'tsover-runtime'],
3435
},
3536
);
3637

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)