From 7c63c89b88fa0fbe6f6d2c0b6664190bb67cc905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20Brudeskar=20Vik=C3=A5s?= Date: Tue, 21 Jan 2020 16:12:19 +0100 Subject: [PATCH] Update manual.md (denoland/deno#3734) Updated the `Deno.bundle` description to actually use the `bundle`-function. --- manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual.md b/manual.md index 3f215c286b45..ece5a755b9f8 100644 --- a/manual.md +++ b/manual.md @@ -969,7 +969,7 @@ which can be supported by Deno. An example of providing sources: ```ts -const [diagnostics, emit] = await Deno.compile("/foo.ts", { +const [diagnostics, emit] = await Deno.bundle("/foo.ts", { "/foo.ts": `import * as bar from "./bar.ts";\nconsole.log(bar);\n`, "/bar.ts": `export const bar = "bar";\n` }); @@ -985,7 +985,7 @@ When not supplying resources, you can use local or remote modules, just like you could do on the command line. So you could do something like this: ```ts -const [diagnostics, emit] = await Deno.compile( +const [diagnostics, emit] = await Deno.bundle( "https://deno.land/std/http/server.ts" ); ```