Svelte Radio cover image

3D and Threlte with Grischa Erbe

Svelte Radio

CHAPTER

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.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner