fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

#esbuild

0 posts0 participants0 posts today
Continued thread

#esbuild has a *nice* bonus of transpiling CSS, which will allow me to ditch the SASS dependency and write plain CSS with nested declarations.

I may still encounter issues with lib imports in my test (such as the chrome/browser specific to browser addons) but I'm confident these will be solved.

Now I "just" need to port this setup to my actual project (and surely write a blog post about this 😂)

#npm, le gestionnaire de modules un tantinet bordélique de #nodejs, a tendance à s'étaler comme un sagouin en mode YOLO.

Et on a beau avoir que 2-3 dépendances dans ses projets (#eslint, #esbuild, ...), on peut vite se retrouver avec un cache npm de plus de 1 Go...

1 PUTXXX DE GIGA. 😠

Pour des applications web qui font 50 Ko minifiées.

Donc ne pas oublier de faire #nettoyage de tant à autre :

npm cache clean --force

Je passe ainsi de 1 Go à 2.5 Mo !

Continued thread

Like, absolute worst-case scenario, I could just use our build system to have #esbuild generate an all-in-one JS file for each handler and then regex through that #JavaScript to find the low-level IAM-related calls ... but that just seems like a total hack.

(And yet may be the easiest solution.)

На минут так 15 пожалел, что продал #esbuild за кастомность бандла с моим ранее любимым #Parcel-ом. Кажется, он очень изменился...

PARCEL, ЧТО ТЫ КАЧАЕШЬ ТАМ ТАКОЕ, ЁПРСТ??? Изыди!

Как сделать один плагин сразу для всех сборщиков фронтенда?

Здравствуйте, товарищи! Сегодня мы снова поговорим про тулинг для фронтенда. В этот раз обсудим разработку плагинов для сборщиков, таких как: Webpack, Vite, esbuild и подобных. За основу мы возьмем Unplugin . Короткий ответ на вопрос из заголовка: пока никак. Чуть более длинный - изображен на обложке. А в качестве полноценного ответа, предлагаю вам эту статью. Попробуем хотя бы приблизиться к заявленному результату. Сразу стоит уточнить: это не туториал, а скорее case-study.

habr.com/ru/articles/856028/

ХабрКак сделать один плагин сразу для всех сборщиков фронтенда?Здравствуйте, товарищи! Сегодня мы снова поговорим про тулинг для фронтенда. В этот раз обсудим разработку плагинов для сборщиков, таких как: Webpack, Vite, esbuild и подобных. За основу мы возьмем...
Continued thread

Uh oh… #Netlify doesn't like this new version at all… 😱

Either #esbuild fails, or the build time is too long for Netlify time limit… 😞

The build time did increase a lot compared to my previous version with Eleventy 2. But with so many changes (Eleventy version, CJS -> ESM, features moved to a plugin), difficult to know where the time really increased.

@eleventy

Hab heute versucht unser #Angular Projekt für #NativeFederation aufzusetzen. Das umstellen auf #esbuild hat immerhin geklappt. Sobald ich #NativeFederation aktiviere läufts allerdings nicht mehr. Hab aktuell auch keinen Anhaltspunkt wo das Problem liegt 🫠

Edit: Es handelt sich um eine Standalone-Anwendung.
Folgender Fehler: `ng0304: 'mat-sidenav-container' is not a known element (used in the '_a56' component template)`.

Die Komponenten sind korrekt importiert. Ohne NF klappt es.

📣 New #webdev related blog post here, introducing my take on what a #Django project template could be for an advanced usage. Obviously #astraluv is there, but also #justsystems , #esbuild , and... #SOPS 🔐

It's very early stage so please tell me what do you think about it 🙏

david.guillot.me/en/posts/tech

David Guillot · Proposal for a Django project template
More from David Guillot

So Kitten’s build process (i.e., the time it takes to build Kitten itself) takes ~0.7 seconds on my ~1 year old desktop (Ryzen 7 5700G 3.8Ghz) vs ~1.4 seconds on my ~3-year-old Starlabs LabTop (renamed to the Starbook thanks to a suggestion by yours truly but sadly, not quickly enough).

So, in summary, it’s bloody fast for something that results in a ~9MB bundle.

(And that’s all thanks to esbuild.)

codeberg.org/kitten/app

Codeberg.orgappA web development kit that’s small, purrs, and loves you.

Some different #TypeScript organization patterns and how they tree-shake in #esbuild: esbuild.github.io/try/#YgAwLjI

esbuild.github.ioesbuild - Try in the browser