From fdd4927a5098815fde89d0e1337da094158e072d Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Sat, 19 Jun 2021 16:25:20 +0200 Subject: [PATCH] Instructs monaco editor to define the global monaco object. --- playground/src/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playground/src/index.tsx b/playground/src/index.tsx index f7a90c5..e2affbf 100644 --- a/playground/src/index.tsx +++ b/playground/src/index.tsx @@ -1,3 +1,5 @@ +(globalThis as any).MonacoEnvironment = { globalAPI: true }; + import * as React from "react"; import * as ReactDOM from "react-dom"; import "./style.scss";