This PR adds an option to have each generated import statement exclude the file extension of the matched file. I.e., instead of generating import x from "./test.js" it generates import x from "./test".
I needed this because I was using import-glob with Typescript, and the Typescript compiler complains if import statements contain file extensions. Maybe others will find it useful too.
This PR adds an option to have each generated
import
statement exclude the file extension of the matched file. I.e., instead of generatingimport x from "./test.js"
it generatesimport x from "./test"
.I needed this because I was using import-glob with Typescript, and the Typescript compiler complains if import statements contain file extensions. Maybe others will find it useful too.