Skip to content

Commit

Permalink
adding todo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon committed May 27, 2024
1 parent c3480f3 commit 18b5fbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default defineConfig({
if (this.format === 'cjs') {
const regex = /require\("(?<import>\.\/.+)"\)/g;
// TODO: should do nothing if file already ends in .cjs
// TODO: could be more resilient for `"` vs `'` imports
return { code: code.replace(regex, "require('$<import>.cjs')") };
}
},
Expand Down

0 comments on commit 18b5fbf

Please sign in to comment.