ts2esm icon indicating copy to clipboard operation
ts2esm copied to clipboard

Using with JS files.

Open redoxahmii opened this issue 1 year ago • 1 comments

There isn't really any clarity on how this works for JS file just a link pointing to an issue. It asks for a tsconfig.json but as the project is not using typescript it does'nt have a tsconfig. Is that required for it to work ?

redoxahmii avatar Sep 05 '24 20:09 redoxahmii

Hi @Redoxahmii, do you have an open source JavaScript project where you want to try ts2esm? We could use it for testing.

TypeScript supports plain JavaScript through a jsconfig.json file.

bennycode avatar Sep 06 '24 09:09 bennycode

It has been successfully tested with plain JavaScript: https://github.com/bennycode/ts2esm/issues/20#issuecomment-1894702085

bennycode avatar Oct 18 '24 11:10 bennycode