Hey π,
I'm working on a small modern TypeScript monorepo trying to showcase the most popular tools and how to set them up to have a cohesive whole: https://github.com/jgoux/acme
I'd love to use bun as my typescript runner as a first step (replacing tsx), but I'm already hitting 2 blockers:
- Lack of support for the
--conditionsflag of node, which is super useful when you want to run all your packages directly in TypeScript in development. This one can be worked around by using the"bun"key in the exports map if I read the doc correctly. But it would be great to be able to dobun --conditions developmentfor better Node.js compatibility. - Lack of support for subpath imports. In order to be future proof and follow standards, I'm using subpath imports instead of TypeScript's
pathsto alias my imports internally. It seems like bun is not able to resolve these:
"imports": {
"#*": "./src/*",
"#test": "./test/index.js"
},
Anyway, I can't wait for bun to be ready and speed up everything, great job! π