Skip to content

Instantly share code, notes, and snippets.

@Ciantic
Created September 17, 2025 09:18
Show Gist options
  • Select an option

  • Save Ciantic/de12a31015e89195b2a297da914f932e to your computer and use it in GitHub Desktop.

Select an option

Save Ciantic/de12a31015e89195b2a297da914f932e to your computer and use it in GitHub Desktop.
1-to-1 bundling with tsdown
import { defineConfig } from "tsdown";
// Try to create 1-to-1 file mapping between src and dist
export default defineConfig({
entry: "./src/**/*.(ts|tsx)",
// Generate package.json `exports` property automatically
// exports: {
// devExports: true,
// },
// skipNodeModulesBundle: true,
hash: false,
unbundle: true,
minify: false,
treeshake: false,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment