Skip to content

Commit

Permalink
chore: remove faq
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Sep 15, 2021
1 parent 49f48ea commit c939d4d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/README.md
Expand Up @@ -282,14 +282,6 @@ For more details:
tsup --help
```

## FAQ

### Why does `export =` get transpiled to `module.exports.default`?

In order to utilize the [code splitting feature in esbuild](https://esbuild.github.io/api/#splitting) we have to transpile the ts code to esm (esbuild's code splitting is only supported by esm format), so `export =` gets transpiled to `export default`, then we transpile the esm code to cjs code when you're bundling in cjs format, which results in `module.exports.default`.

You can fix this by disabling code splitting with the `--no-splitting` flag.

## License

MIT © [EGOIST](https://github.com/sponsors/egoist)

1 comment on commit c939d4d

@vercel
Copy link

@vercel vercel bot commented on c939d4d Sep 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.