refactor(cli): migrate runtime compile/bundle to new infrastructure (#8192)

Fixes #8060
This commit is contained in:
Kitson Kelly 2020-11-02 13:51:56 +11:00 committed by GitHub
parent 3558769d46
commit fdcc78500c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 852 additions and 2770 deletions

View file

@ -1,7 +1,7 @@
const [errors, program] = await Deno.compile(
"main.ts",
"/main.ts",
{
"main.ts": `document.getElementById("foo");`,
"/main.ts": `document.getElementById("foo");`,
},
{
lib: ["dom", "esnext"],
@ -9,4 +9,4 @@ const [errors, program] = await Deno.compile(
);
console.log(errors);
console.log(Object.keys(program));
console.log(Object.keys(program).sort());