BrazilJS

Share this post

Suporte a HMR no parcel

www.braziljs.org

Suporte a HMR no parcel

Funcionalidade veio meio sem querer durante o desenvolvimento

BrazilJS
Mar 10, 2021
2
Share

Devon Govett, criador do Parcel, bundler super rápido e com “zero configurações”, anunciou nova funcionalidade na qual está trabalhando: Hot Module Reload (HMR).
Indo além, é possível refazer o build até mesmo quando algum plugin babel é alterado.

“A motivação original para trabalhar nisso era, na verdade, a invalidação do cache ao modificar uma dependência de desenvolvimento. Apenas rastrear package.json#version não é suficiente, devido a, por exemplo, patch-package e plug-ins locais em seu projeto. HMR veio naturalmente depois. Adoro quando isso acontece!”

Twitter avatar for @devongovett
Devon Govett @devongovett
Just merged something really cool for Parcel 2: HMR for Parcel plugins and other build dependencies! 😲 This makes it super fast to work on a plugin and see your changes instantly – no need to restart Parcel. Works with Babel plugins too, and even in node_modules! 🤯
Image
7:49 PM ∙ Mar 1, 2021
123Likes11Retweets

2
Share
Comments
Top
New
Community

No posts

Ready for more?

© 2023 BrazilJS
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing