From 6075c803126390eb5660b26419c6aea57bcf8763 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Thu, 16 Sep 2021 21:14:29 +0800 Subject: [PATCH] chore: fix markdown --- README.md | 3 --- docs/README.md | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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).