From ea5dbcbbef6ebfd66d0a986972669981b85f695e Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sun, 11 Oct 2020 13:25:43 -0700 Subject: [PATCH] fixup conditions bug --- src/cli.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 1d0e04150..cf5a21c4e 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -541,8 +541,10 @@ export async function cli (cmd: string | undefined, rawArgs: string[]) { conditions.push('development'); if (opts.deno) conditions.push('deno'); - if (opts.node) + else if (opts.node) conditions.push('node'); + else + conditions.push('browser'); const inMapFile = getInMapFile(opts); const outMapFile = getOutMapFile(inMapFile, opts);