egoist / egoist/tsup

Can't disable tree-shaking

Open
#847 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

Can we disable tree-shaking?

I tried with `treeshake: false` and with the cli command `--no-treeshake` but both seems to tree-shake anyway

```javascript
export default defineConfig((_) => {
return {
entry: 'src/index.ts',
format: 'esm',
outDir: 'build',
minify: true,
treeshake: false,
platform: 'node',
}
})
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.