Error when using typescript conf with moduleResolution set to bundler #1189
dducluzeaud
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Thanks for this! With a few years of hindsight I’ve realised that trying to be too helpful with TypeScript was a mistake, and it’s the main thing that’s preventing me from getting ESM working and blocking the whole project. So I’m in the process of removing the baked-in TS support, which will come soon in V6. I think in 2024 it makes sense for people to manage the TS bit themselves. Hopefully your workaround is good enough for now, I’ll leave this open to keep you updated though. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have recently moved our tsconfig to module: "ESNext" and moduleResolution: "bundler ". Everything was working except betterer due to the incompatily between the module and the moduleResolution. I noticed the tsConfing bein rewriting in the file betterer/config/ register
Is there any reason for that line because if I remove it completely everything works fine. I tried to pass my file to .betterer.js but unfortunately I had the same probleme. A work around was to create a tsconfig.bettterer.json and path it to the cli. I can create a PR if you are interested.
Beta Was this translation helpful? Give feedback.
All reactions