diff options
author | Lasse Brudeskar Vikås <bvx89@users.noreply.github.com> | 2020-01-21 16:12:19 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-21 10:12:19 -0500 |
commit | 159ac525ae13816fec76395b0a6e7b1ab55dee1a (patch) | |
tree | 63a0b97c3b786f6fb220eeab135e27868347589b /std/manual.md | |
parent | 108294deeb0897199ebdf0af203ff8ddd457b1ef (diff) |
Update manual.md (#3734)
Updated the `Deno.bundle` description to actually use the `bundle`-function.
Diffstat (limited to 'std/manual.md')
-rw-r--r-- | std/manual.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/manual.md b/std/manual.md index 3f215c286..ece5a755b 100644 --- a/std/manual.md +++ b/std/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" ); ``` |