feat: Source maps
I maintainer di solito rispondono entro 2 giorni
@aleksanderkatan ci sta già lavorando.
Dal 27/8/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
The goal of this macrotask is to link to an appropriate line and character when 'use gpu' functions turns out to be invalid.
- Add a node wrapper for Identifier, so that it can be sourcemapped (#2973)
- Create a function for extracting sourcemaps from tinyest (#3023)
- Accept source maps in
transpileFn(#2975) - Collect source maps in plugin (#2942)
- Include filename in metadata (#3039)
- Update wgsl errors to all go through a report function that returns
never(so that we can later useevalthere) - Include source of error in WGSL errors
- Document the feature
- Make the error link clickable
We could fake-include the errorous file in the stack trace, like WESL does. Something like this:
const fileUrl = `${window.location.origin}/src/main.ts?raw`;
const sourceMap = {
version: 3,
file: 'fakeErrorFile.js',
sources: [fileUrl],
mappings: `AA${toVLQ(/* line */ 11)}${toVLQ(/* char */ 4)}`,
};
const base64Map = btoa(
String.fromCharCode(...new TextEncoder().encode(JSON.stringify(sourceMap))),
);
const errFile = `\
throw new Error(':c');
//# sourceMappingURL=data:application/json;base64,${base64Map}
//# sourceURL=apps/typegpu-docs/src/examples/simple/triangle/index.ts
`;
eval(errFile);
(RFC, extra work outside of original scope) Handle device errors.
WESL provides WeslDevice that takes generated source maps into account. We could do the same.
We should probably start with just catching and re-throwing errors. This may allow for easier RN debugging.
This will require us to collect another source map of generated WGSL.
- Lingua principale
- TypeScript
- Stelle
- 3.3k
- Fork
- 135
- Merge medio
- 4g 1h
- PR unite (30g)
- 64
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di software-mansion/TypeGPU
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
software-mansion/TypeGPU#3219 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
texture.write(VideoFrame) uses the padded coded size instead of the visible sizeForse già presa @RaphaelFakhri l’ha presa 1 giorno fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
software-mansion/TypeGPU#3213 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
software-mansion/TypeGPU#3008 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
software-mansion/TypeGPU#2948 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
docs: Fix camera orientation in "Monocular Light Injection" exampleForse già presa @pullfrog l’ha presa 62 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
software-mansion/TypeGPU#2890 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di software-mansion/TypeGPU
Issue simili
-
[BUG] rag: sentence content can cross the reported sentence boundariesForse già presa @LJK-ikun l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
README: the Resource URI Schemas example's file://documents/* pattern only matches that literal URIAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
platformatic/mcp#361 ·
I maintainer di solito rispondono entro 1 giorno
-
frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Push: sem service worker ou sem VAPID, o interruptor de Notificações fica ligado sem avisar nadaAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
melgarafael/DeskcommCRM#3164 ·
I maintainer di solito rispondono entro 1 giorno