egoist / esbuild-register

Transpile JSX, TypeScript and esnext features on the fly with esbuild
MIT License
984 stars 52 forks source link

Add support for jsconfig paths by bumping tsconfig-paths to 4.0 #85

Closed alexeyds closed 1 year ago

alexeyds commented 1 year ago

tsconfig-paths did not have support for jsconfig.json files until 4.0(https://github.com/dividab/tsconfig-paths/pull/199) and esbuild-register is using version 3.12 at the moment. Would be nice to have it bumped if possible

Also, if anyone is looking for a temporary solution, installing tsconfig-paths yourself and adding this before registering esbuild hooks worked for me:

const tsConfigPaths = require("tsconfig-paths");
tsConfigPaths.register();
Karibash commented 1 year ago

Starting with TypeScript 5.0, it is now possible to specify arrays in extends. Since an error occurs when specifying arrays in extends in tsconfig-paths version 3.1.2, it is necessary to upgrade to version 4.2.0

egoist commented 1 year ago

:tada: This issue has been resolved in version 3.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: