短评 · ·

X 归档 2024-03-03

1 条动态 · 图 1 · 视频 0
📢 Parcel v2.12.0 brings support for macros, a new web-based REPL, improved CSS bundling, and manual code splitting!

Macros are JS/TS functions that run at build time instead of being bundled. They can generate constants, code, and even assets (eg css)!

https://parceljs.org/blog/v2-12-0/
📢 Parcel v2.12.0 带来了宏(macros)支持、全新的网页版 REPL、改进的 CSS 打包以及手动代码分割!

宏是在构建时运行而非被打包的 JS/TS 函数。它们可以生成常量、代码,甚至是资源(比如 css)!

https://parceljs.org/blog/v2-12-0/
@devongovett 的配图 1/1