From 18b5fbf192d100f143bb481e2b99cfcb893a00ac Mon Sep 17 00:00:00 2001 From: Alex Reardon Date: Mon, 27 May 2024 14:06:05 +1000 Subject: [PATCH] adding todo --- tsup.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tsup.config.ts b/tsup.config.ts index bd5bc87..eca2281 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -17,6 +17,7 @@ export default defineConfig({ if (this.format === 'cjs') { const regex = /require\("(?\.\/.+)"\)/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('$.cjs')") }; } },