PWV Portfolio Feed

What our portfolio companies are saying on BlueSky ...

Pedro Piñera
Pedro Piñera @pepicrft.bsky.social
3 months ago
💬 0 ♻️ 0 ❤️ 1
VoidZero
VoidZero @voidzero.dev
3 months ago
🚀 @rolldown.rs now enables `output.minifyInternalExports` by default.

This feature shortens internal export names by using the `as` keyword.
At first glance your bundle may look bigger...
…but the additional `as` unlocks improved minification.
Input: index.js with "import ./constants.js", constants.js with "import('./dynamic.js'); export const theAnswer = 42;", dynamic.js with "import { theAnswer } from './constants.js'; console.log(theAnswer);". Subtitle: Exported variable used by a dynamic chunk "internally".

Before: Bundled code, as well as bundled & minified code. After minifcation you see that "theAnswer" is preserved in the bundle. Subtitle: When minified, exported variable names are persisted as-is, leading to bigger bundles.

After: "as" naming for export and import ("export { theAnswer as t }", "import { t as theAnswer }". When minified, the names are minified too.
Subtitle: Added named exports lead to better minification and smaller bundles.
💬 3 ♻️ 2 ❤️ 30
Prisma
Prisma @prisma.io
3 months ago
Building with @bun.sh?

You can pair it with Prisma for a fast, fully-typed, end-to-end stack.

⚡️ Bun for speed
🔍 Prisma ORM for typed DB access
🥞 Prisma Postgres for reliability

Get started today with Bun and Prisma👇
pris.ly/bun-ppg
💬 0 ♻️ 0 ❤️ 1
Next