top | item 45680047

(no title)

axismundi | 4 months ago

import-maps (supported via "imports" in package.json) improve developer ergonomics, not performance. Node still resolves the mapped path normally; there’s no measurable “boost.” They’re helpful to replace ugly relative imports, but they don’t change Node’s lookup speed.

Aliases in vite.config.js tell Vite (and its dev server/bundler) how to resolve imports during build and dev time. They don’t make runtime faster because your bundled output already contains resolved paths.

discuss

order

No comments yet.