esm-loader
esm-loader copied to clipboard
Node.js loader for compiling TypeScript modules to ESM
When attempting to resolve file extensions we should remove preexisting extensions. This resolves importing a typescript file into a javascript file while using a `.js` extensions. This matches ts-node behavior...
Previously, detecting a TypeScript file was purely based on the file extension. However, it's possible that `allowJs` is set in `tsconfig.json` so it's not limited to files with TS extensions....
Fixes https://github.com/esbuild-kit/tsx/issues/96 for `esm-loader`. I'm walking through the `references` key in the first `tsconfig` and constructing a map of projects. The alias paths are then tested against all projects until...
Closes https://github.com/esbuild-kit/tsx/issues/344.
esbuild-kit/tsx#345 try a temporary fix