diff --git a/README.md b/README.md index 5e76edac..8b7b3513 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,6 @@ tsup src/index.ts src/cli.ts ``` This will output `dist/index.js` and `dist/cli.js`. - -Code splitting is enabled by default and supported in `cjs` and `esm` format. - ## Documentation For complete usages, please dive into the [docs](https://tsup.egoist.sh). diff --git a/docs/README.md b/docs/README.md index ef96256d..fbe8e6a5 100644 --- a/docs/README.md +++ b/docs/README.md @@ -185,7 +185,7 @@ dist └── index.js ``` -## Code Splitting +### Code Splitting Code splitting currently only works with the `esm` output format, and it's enabled by default. If you want code splitting for `cjs` output format as well, try using `--splitting` flag which is an experimental feature to get rid of [the limitation in esbuild](https://esbuild.github.io/api/#splitting).