Jens Oliver Meiert

Use my latest work: latest tech booklatest non-tech booklatest optimization toollatest defense tool

HTML Minifier Next 7 Is ESM-Only

Published on Jun聽15, 2026, filed under , , , , . (Share this post, e.g., on Mastodon.)

HTML Minifier Next 7 is out鈥攁nd the title gives it away, it drops support for CommonJS and is ESM-only now.

The update includes another breaking though very specific change:

removeStyleLinkTypeAttributes and removeScriptTypeAttributes have been so closely related (in spirit), they were merged into one option, removeDefaultTypeAttributes.

In CommonJS environments on Node.js older than 22, keep using HTML Minifier Next 6鈥擨 don鈥檛 maintain old versions, but HMN聽6 has been regularly updated and is still in good shape (from all I know聽馃檪).

For the type-related changes, no action is needed if you don鈥檛 use either option; preset output is not affected, as both the conservative and the comprehensive preset had the two options enabled.

(The update includes a few more improvements, but these are the two most important ones.)

As always, if you run into any problem (or have an idea for a feature), report it in the HTML Minifier Next repo. Cheers!

About Me

Jens Oliver Meiert, on March 2, 2026.

I鈥檓 Jens (long: Jens Oliver Meiert), and I鈥檓 an engineering lead, guerrilla philosopher, and indie publisher. I鈥檝e worked as a technical lead and engineering manager at various companies (e.g., Google); I鈥檓 an active web and tool developer (code optimization, digital defense), a contributor to web standards (like HTML, CSS, WCAG), and a book author (O鈥橰eilly, Frontend Dogma).

I love trying things鈥攊n web development and engineering management, but also in politics and philosophy, where I hold to one idea in particular: that we can only be well if we take good care of everyone. Here on meiert.com I talk about some of my perspectives and experiences. (Interpret charitably but be critical鈥攁nd share feedback and advice that makes my work better.)