Rspack @rspack.dev · Apr 17

Node.js 20+ and TypeScript 6.0 now let you write subpath imports with a bare "#/*" prefix. Rspack supports it too — so you can map "#/*" directly to ./dist/* (or ./src/*) Clean, familiar, and one step closer to the "@/" bundler experience 🦀 #Rspack #WebDev #JavaScript

6 likes 2 replies

?

Replies

Emmie Päivärinta · Apr 17

I've been wondering why ECMAScript isn't standardizing this in some way. I really hate seeing ../../../../ in import paths.

Rspack · Apr 17

Thanks to @kwonoj for implementing it! Track the implementation and follow-up details: 👉 github.com/web-infra-de... 👉 devblogs.microsoft.com/typescript/a...