
3D and Threlte with Grischa Erbe
Svelte Radio
00:00
Is There a Thread Preprocessor?
The thread preprocessor, it makes use of swelt walk. Swelt walk is an AST walker that walks through the AST of your swelt component. And to be able to walk through that, it needs to be like a swelt component and not a TypeScript components. So you have to run all the preprocessing that would transform your TypeScript or SCSS or whatever you want to use. You have to run that beforehand so that the thread preprocessor can use that swelt walk to transform your component. It also provides Type Safety. I think that's kind of a neat thing.
Transcript
Play full episode