mirror of
https://github.com/denoland/deno.git
synced 2025-01-14 10:01:51 -05:00
Update manual.md (#3734)
Updated the `Deno.bundle` description to actually use the `bundle`-function.
This commit is contained in:
parent
108294deeb
commit
159ac525ae
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
);
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue