keep newt.js separate in playground
This commit is contained in:
2
playground/src/global.d.ts
vendored
2
playground/src/global.d.ts
vendored
@@ -1,6 +1,8 @@
|
||||
declare module "*.css";
|
||||
export {};
|
||||
declare global {
|
||||
// typescript doesn't know worker.ts is a worker
|
||||
function importScripts(...scripts: string[]): void;
|
||||
interface Process {
|
||||
platform: string;
|
||||
stdout: {
|
||||
|
||||
@@ -74,6 +74,7 @@ function Editor({ initialValue }: EditorProps) {
|
||||
value,
|
||||
language: "newt",
|
||||
theme: "vs",
|
||||
fontFamily: "Comic Code, Menlo, Monaco, Courier New, sans",
|
||||
automaticLayout: true,
|
||||
acceptSuggestionOnEnter: "off",
|
||||
unicodeHighlight: { ambiguousCharacters: false },
|
||||
|
||||
@@ -153,3 +153,4 @@ onmessage = async function (e) {
|
||||
let output = stdout
|
||||
postMessage({javascript, output, duration})
|
||||
}
|
||||
importScripts('newt.js')
|
||||
|
||||
Reference in New Issue
Block a user