From a6a584dedbe39f62c27660424ac715746bad057c Mon Sep 17 00:00:00 2001 From: rougsig Date: Sat, 7 Dec 2024 22:17:03 +0400 Subject: [PATCH] Add IIFE external notice --- docs/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 46449dd8..043ad64e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -56,6 +56,8 @@ This will output `dist/index.js` and `dist/cli.js`. By default tsup bundles all `import`-ed modules but `dependencies` and `peerDependencies` in your `package.json` are always excluded, you can also use `--external ` flag to mark other packages or other special `package.json`'s `dependencies` and `peerDependencies` as external. +**IMPORTANT**: IIFE output is not supported with `--external` option. + ### Excluding all packages If you are using **tsup** to build for **Node.js** applications/APIs, usually bundling dependencies is not needed, and it can even break things, for instance, while outputting to [ESM](https://nodejs.org/api/esm.html). @@ -617,4 +619,4 @@ This usually happens when you have `emitDecoratorMetadata` enabled in your tscon ## License -MIT © [EGOIST](https://github.com/sponsors/egoist) +MIT © [EGOIST](https://github.com/sponsors/egoist) \ No newline at end of file