Emit .js extension in generated files#138
Conversation
🦋 Changeset detectedLatest commit: e8e778e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Hmm as discussed here:
This is not what this PR does so I'll close but feel free to open a new one that does what we discussed. |
|
Sorry I meant to address that in an edit but didn't get around to it. I can add an option but I think it should be default enabled. It is required for any consumer that is using More typescript references: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html * I was able to find one usage example that If you'd still rather have it off by default let me know, I can do a followup PR no problem. |
Trimmed down version of #134 without the
nodenextchanges.Adding
.jsis required with certain typescript configurations / ESM modules. This change only adds support for all import patterns.Nice LLM generated table:
.js.jsmoduleResolution: "node"(legacy)moduleResolution: "bundler"moduleResolution: "node16"moduleResolution: "nodenext"require())Closes #127