diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-02-16 12:02:00 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 12:02:00 +1100 |
commit | 7e9028b53227ce67f56df79f623b2f12fda756b5 (patch) | |
tree | 219196be5187bb246fdc72ef41a92c66dac93fe5 /cli/dts/lib.deno.unstable.d.ts | |
parent | a6beab824815cededf0ba9fc7904d3b00fde75e4 (diff) |
feat(cli): Deno.emit supports bundling as IIFE (#9291)
Closes #9204
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 0266dd750..91b33a268 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -498,8 +498,10 @@ declare namespace Deno { interface EmitOptions { /** Indicate that the source code should be emitted to a single file - * JavaScript bundle that is an ES module (`"esm"`). */ - bundle?: "esm"; + * JavaScript bundle that is a single ES module (`"esm"`) or a single file + * self contained script we executes in an immediately invoked function + * when loaded (`"iife"`). */ + bundle?: "esm" | "iife"; /** If `true` then the sources will be typed checked, returning any * diagnostic errors in the result. If `false` type checking will be * skipped. Defaults to `true`. |