mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 23:24:37 +00:00
deno2: compile in TS, build protobuf
This commit is contained in:
parent
356fd18c73
commit
b3003535be
7 changed files with 495 additions and 2979 deletions
|
@ -1,6 +1,13 @@
|
|||
/// <reference path="deno.d.ts" />
|
||||
//import { main as pb } from "deno_pb/msg.pb"
|
||||
import * as ts from "typescript";
|
||||
|
||||
const globalEval = eval;
|
||||
const window = globalEval("this");
|
||||
window["denoMain"] = () => {
|
||||
//const msg = pb.Msg.fromObject({});
|
||||
//denoPrint(`msg.command: ${msg.command}`);
|
||||
denoPrint(`ts.version: ${ts.version}`);
|
||||
denoPrint("Hello world from foo");
|
||||
return "foo";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue