esm-loader icon indicating copy to clipboard operation
esm-loader copied to clipboard

fix: TypeScript file detection

Open privatenumber opened this issue 2 years ago • 0 comments

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.

closes https://github.com/esbuild-kit/tsx/issues/344 closes https://github.com/esbuild-kit/esm-loader/pull/40 addresses half of https://github.com/esbuild-kit/tsx/issues/135

privatenumber avatar Feb 12 '23 02:02 privatenumber