Artwork

内容由Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers提供。所有播客内容(包括剧集、图形和播客描述)均由 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
Player FM -播客应用
使用Player FM应用程序离线!

Hasty Treat - Vite + Parcel 2

25:49
 
分享
 

Manage episode 297287415 series 1469447
内容由Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers提供。所有播客内容(包括剧集、图形和播客描述)均由 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

In this Hasty Treat, Scott and Wes talk about modern build tools, comparisons between them, and makes them modern and next-level.

Prismic - Sponsor

Prismic is a Headless CMS that makes it easy to build website pages as a set of components. Break pages into sections of components using React, Vue, or whatever you like. Make corresponding Slices in Prismic. Start building pages dynamically in minutes. Get started at prismic.io/syntax.

LogRocket - Sponsor

LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.

Show Notes

03:08 - Next Gen Bundlers are here!

  • They are easy
  • They are fast
  • They are bundlers
  • They are code splitters
  • They are dev environments
  • HMR / Fast Refresh

07:13 - What do they use under the hood?

  • Parcel uses SWC (Rust)
  • Vite uses esbuild (Go)

10:29 - How do you use them?

  1. Usually point your app at an HTML file
  2. Your HTML file has an ES module
  3. It then goes and loads everything from there
  4. They have adaptors for different types of files
    • CSS
    • Images
    • Etc.
  • You can also point it directly at files

14:59 - Common use-cases

  • React / JSX
    • OOTB
  • Vue
  • Svelte
  • TypeScript
    • Both just work
  • Custom Babel config
    • Plugins for both
  • Sass
    • Vite: Detects it, asks to install it
    • Parcel: Detects it, installs it for you
  • PostCSS Processors

20:29 - Custom API

  • Both have a custom API or “plugins”, which you can integrate into your app or tooling if needed.
  • Example use-case: a really nice WordPress dev package.

20:57 - Which one?

  • Both are really good!
  • Parcel 2 has been in dev for 2+ years - unsure when it will launch.
  • Wes: In my experience Vite “just works” a bit better. Might be a side effect of Parcel being in dev.
  • Both are wicked fast. (Wes: I literally screen recorded JS and CSS updates ~ 10 ms difference either way.)
  • Life is good!
Links Tweet us your tasty treats!
  continue reading

763集单集

Artwork
icon分享
 
Manage episode 297287415 series 1469447
内容由Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers提供。所有播客内容(包括剧集、图形和播客描述)均由 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

In this Hasty Treat, Scott and Wes talk about modern build tools, comparisons between them, and makes them modern and next-level.

Prismic - Sponsor

Prismic is a Headless CMS that makes it easy to build website pages as a set of components. Break pages into sections of components using React, Vue, or whatever you like. Make corresponding Slices in Prismic. Start building pages dynamically in minutes. Get started at prismic.io/syntax.

LogRocket - Sponsor

LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.

Show Notes

03:08 - Next Gen Bundlers are here!

  • They are easy
  • They are fast
  • They are bundlers
  • They are code splitters
  • They are dev environments
  • HMR / Fast Refresh

07:13 - What do they use under the hood?

  • Parcel uses SWC (Rust)
  • Vite uses esbuild (Go)

10:29 - How do you use them?

  1. Usually point your app at an HTML file
  2. Your HTML file has an ES module
  3. It then goes and loads everything from there
  4. They have adaptors for different types of files
    • CSS
    • Images
    • Etc.
  • You can also point it directly at files

14:59 - Common use-cases

  • React / JSX
    • OOTB
  • Vue
  • Svelte
  • TypeScript
    • Both just work
  • Custom Babel config
    • Plugins for both
  • Sass
    • Vite: Detects it, asks to install it
    • Parcel: Detects it, installs it for you
  • PostCSS Processors

20:29 - Custom API

  • Both have a custom API or “plugins”, which you can integrate into your app or tooling if needed.
  • Example use-case: a really nice WordPress dev package.

20:57 - Which one?

  • Both are really good!
  • Parcel 2 has been in dev for 2+ years - unsure when it will launch.
  • Wes: In my experience Vite “just works” a bit better. Might be a side effect of Parcel being in dev.
  • Both are wicked fast. (Wes: I literally screen recorded JS and CSS updates ~ 10 ms difference either way.)
  • Life is good!
Links Tweet us your tasty treats!
  continue reading

763集单集

所有剧集

×
 
Loading …

欢迎使用Player FM

Player FM正在网上搜索高质量的播客,以便您现在享受。它是最好的播客应用程序,适用于安卓、iPhone和网络。注册以跨设备同步订阅。

 

快速参考指南