ts2esm icon indicating copy to clipboard operation
ts2esm copied to clipboard

Won't convert absolute tsx imports

Open alexnault opened this issue 10 months ago • 1 comments

As of @2.2.7, The following works:

import App from './components/App';
// output =>
import App from './components/App.js';

The following does not:

import App from 'components/App';
// output =>
import App from 'components/App'; // (no change)
// expected =>
import App from 'components/App.js';

alexnault avatar Feb 07 '25 20:02 alexnault

Hi @alexnault and thank you very much for your report! Can you tell me your tsconfig.json setup? I would like to make a reproducible example.

bennycode avatar Feb 26 '25 08:02 bennycode

It's been a while. I can't remember what the issue was, but it was unrelated to ts2esm. Closing. Thank you

alexnault avatar Oct 31 '25 14:10 alexnault