egoist / esbuild-register

Transpile JSX, TypeScript and esnext features on the fly with esbuild

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work without tsconfig (v3.3.0 regression)

flytaly opened this issue · comments

If there is no tsconfig.json file somewhere in the tree node -r esbuild-register hangs and then throw an error

node:path:1166
  join(...args) {
      ^

RangeError: Maximum call stack size exceeded
    at Object.join (node:path:1166:7)
    at walkForTsConfig

Works in 3.2.1

Noticed it today when esno stopped working for me in some directories.

Seems to be a problem with tsconfig-paths...

🎉 This issue has been resolved in version 3.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Turns out replacing loadConfig('.') with loadConfig() or loadConfig(process.cwd()) fixed it 🥶