summaryrefslogtreecommitdiff
path: root/cli/tests/standalone_compiler_ops.ts
blob: b95e1222e110b8eca69eff36dbbfc290b7854e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const { files } = await Deno.emit("/mod.ts", {
  bundle: "classic",
  sources: {
    "/mod.ts": `import { hello } from "/hello.ts"; console.log(hello);`,
    "/hello.ts": `export const hello: string = "Hello, Compiler API!"`,
  },
  compilerOptions: {
    sourceMap: false,
  },
});

eval(files["deno:///bundle.js"]);