summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-02-16 12:02:00 +1100
committerGitHub <noreply@github.com>2021-02-16 12:02:00 +1100
commit7e9028b53227ce67f56df79f623b2f12fda756b5 (patch)
tree219196be5187bb246fdc72ef41a92c66dac93fe5 /cli/dts/lib.deno.unstable.d.ts
parenta6beab824815cededf0ba9fc7904d3b00fde75e4 (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.ts6
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`.