Skip to content

Commit

Permalink
Update manual.md (denoland/deno#3734)
Browse files Browse the repository at this point in the history
Updated the `Deno.bundle` description to actually use the `bundle`-function.
  • Loading branch information
bvx89 authored and denobot committed Jan 31, 2021
1 parent 1178e77 commit 7c63c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
});
Expand All @@ -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"
);
```
Expand Down

0 comments on commit 7c63c89

Please sign in to comment.