From 6cd6ce6f6fc7fe115bd90d2b156e96490072a8ee Mon Sep 17 00:00:00 2001 From: Hyko Date: Tue, 14 Apr 2026 20:15:30 -0400 Subject: [PATCH] build: set esbuildOptions outbase to 'src' in tsup config Set `options.outbase = 'src'` in the esbuildOptions callback to ensure output files preserve the correct directory structure relative to the `src` folder, preventing path flattening during the build process. --- tsup.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tsup.config.js b/tsup.config.js index b869d4a..7afaec4 100644 --- a/tsup.config.js +++ b/tsup.config.js @@ -78,6 +78,7 @@ export default defineConfig([ ], bundle: false, // Don't bundle these files esbuildOptions(options) { + options.outbase = 'src'; options.loader = { '.js': 'jsx', '.jsx': 'jsx',