#Feedback (mostly modules resolution)

1 messages Β· Page 1 of 1 (latest)

oblique veldt
#

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 --conditions flag 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 do bun --conditions development for 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 paths to 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! πŸ˜„

GitHub

Contribute to jgoux/acme development by creating an account on GitHub.