We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3831f9 commit 33e9df5Copy full SHA for 33e9df5
tsup.config.ts
@@ -4,21 +4,15 @@ import { replace } from 'esbuild-plugin-replace';
4
import minimist from 'minimist';
5
6
const args = minimist(process.argv.slice(2));
7
-const targets = args._;
8
-// const watch = args.watch || args.w;
9
const watch = process.env.WATCH;
10
-const formats = args.formats || args.f;
11
-const noCheck = args.nocheck || args.n;
12
const sourceMap = args.sourcemap || args.s;
13
-const mergeTypes = args.mergetypes || args.m;
14
-const noExternal = args.noExternal || args.e;
15
16
export const tsup: Options = {
17
sourcemap: sourceMap,
18
clean: true,
19
dts: true,
20
watch: watch ? 'src/' : false,
21
- format: ['cjs', 'esm', 'iife'],
+ format: ['cjs', 'esm'],
22
esbuildPlugins: [
23
replace({
24
__VERSION__: `'${pkg.version}'`,
0 commit comments