Created
September 17, 2025 09:18
-
-
Save Ciantic/de12a31015e89195b2a297da914f932e to your computer and use it in GitHub Desktop.
1-to-1 bundling with tsdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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