When Svelte met TypeScript feat. Rich Harris and Orta Therox

over 2 years ago•April 5, 2023
6:53
1,284 views
43 likes
O

OfferZen Origins

Channel

Interviewed Person

Rich Harris

Description

šŸŽ„ For more tech documentaries and weekly dev stories, subscribe to be notified šŸ‘‰ During the production of Svelte Origins, we asked Rich Harris and Orta Therox how the improved Svelte tooling experience led to mainstream adoption. 00:03 TypeScript support was one of the most requested features in Svelte 01:33 Exploring making the tooling experience in TypeScript as good in the Svelte ecosystem. 04:46 Orta's involvement helped Svelte hit mainstream adoption by providing tooling in the editor #Svelte #JavaScript #SvelteOrigins #PR #SvelteNews #Programming #SoftwareDevelopment #Developer #OpenSource #Technology #RichHarris #OrtaTherox #TypeScript OfferZen is a developer job platform helping devs find jobs they love in positions they deserve. Want to know more about OfferZen? Check out the link below. šŸ‘‡ https://www.offerzen.com/community Connect with OfferZen: Article: https://www.offerzen.com/blog/when-svelte-met-typescript-rich-harris-orta-therox Twitter: https://twitter.com/offerZen/ Instagram: https://www.instagram.com/offerzen/ Facebook: https://www.facebook.com/offerzen/ LinkedIn: https://www.linkedin.com/company/offerzen/

Transcript

Group by:

For a long time, TypeScript support was one of the most requestedĀ  features in Svelte. People like being able to write the JavaScript inside the components. WeĀ  have this single file component format. But at the time, TypeScript was becoming incredibly popularĀ  and very important in the JavaScript ecosystem. To the extent that a lot of people justĀ  won't touch code unless it's TypeScript. And so it was preventing people from using Svelte.

I happen to know Orta. He's a good friend. HeĀ  actually used to live down the road from here, and he's on the TypeScript team. And Orta wasĀ  able to lead a project with several developers to actually build TypeScript support into Svelte.Ā  Not directly into the compiler, you still have to add a little bit of a preprocessor, but it meansĀ  that now if you're building a Svelte component, you can use TypeScript and you will getĀ  all of the same auto-completions and type checking as you're building your app as youĀ  would if you're writing straight TypeScript.

I heard about Svelte back at my old company. WeĀ  had Rich Harris come in and give us a talk about what it was. It was still like a very new projectĀ  for him at the time. And a few years later, I interacted with Rich a few times through theĀ  JavaScript ecosystem in New York. We are both Englishmen living in New York. And I invitedĀ  him to a house party, and we were chatting about where Svelte is and where Svelte could beĀ  and at the time I was working on TypeScript and

I thought it would be a very interesting sortĀ  of exploration to see what it looks like to make the sort of tooling experience that we haveĀ  in TypeScript as good in the Svelte ecosystem, because Rich hadn't really been focusing muchĀ  on what does it look like to work in Svelte in your editor but mostly on what is Svelte,Ā  how does Svelte work and how does Svelte fast. And so I felt like it was something thatĀ  I could take a dig at. I had a lot of

experience in trying to make developerĀ  tools for complicated environments, and so I said Well, maybe I could try andĀ  take that responsibility for you for a while. Like we didn't want to TypeScript insideĀ  Svelte, but we wanted the TypeScript-like experience that people get in their editors forĀ  Svelte. I think that that is like an important part of scaling Svelte. Like the ability toĀ  have your editor tell you what properties are available and how they all intermingle. You needĀ  like rich developer tools to be able to do that.

I kind of did two things. One was toĀ  describe what I think the future of tooling for Svelte looks like. AndĀ  then the other was to sort of create the foundations that the allow of aĀ  people to eventually create those. There were a lot of different projectsĀ  that had different owners that weren't necessarily on the Svelte callĀ  team. They were all trying to find different ways that you could haveĀ  interesting experiences in the browsers,

in your editors and on the command line. WhatĀ  I did was I went and consolidated all of the most interesting work into a single placeĀ  and started building out these foundations that would allow maintainers in the call team toĀ  stop actually running these projects themselves. So think of it as like you know, there were a lotĀ  of people exploring in the world. I came in as a sort of somebody that has a lot of experienceĀ  in that area and just said, these projects are the ones that we actually want to take. We'llĀ  take some of these projects and put them into

Svelte sort of repository of things that we careĀ  about and make a few more people call team members because they're already doing interesting workĀ  and then consolidate it all into one single thing. We actually built support for Svelte in an LSP,Ā  which means that it works in VM it works in Atom, it works in Sublime Text, and it works inĀ  VS code as well as trying to figure out, Well, we may have all these tools in your editor,

14 segments (grouped from 77 original)1137 words~6 min readGrouped by 30s intervals

Video Details

Duration
6:53
Published
April 5, 2023
Channel
OfferZen Origins
Language
ENGLISH
Views
1,284
Likes
43

Related Videos