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 d113115 commit c3480f3
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 @@ -16,6 +16,7 @@ export default defineConfig({
renderChunk(_, { code }) {
if (this.format === 'cjs') {
const regex = /require\("(?<import>\.\/.+)"\)/g;
// TODO: should do nothing if file already ends in .cjs
return { code: code.replace(regex, "require('$<import>.cjs')") };
}
},
Expand Down

0 comments on commit c3480f3

Please sign in to comment.