From 82b5487f2b4a4a60b5c3d4f46f24cad5d72ef353 Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Thu, 3 Feb 2022 16:13:59 +0100 Subject: [PATCH] Import monaco-editor instead of editor.api. --- test/smoke/webpack/index.js | 2 +- webpack-plugin/README.md | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test/smoke/webpack/index.js b/test/smoke/webpack/index.js index f4e62ee8..edcd18b6 100644 --- a/test/smoke/webpack/index.js +++ b/test/smoke/webpack/index.js @@ -1,4 +1,4 @@ -import * as monaco from 'monaco-editor/esm/vs/editor/editor.api'; +import * as monaco from 'monaco-editor'; // expose the monaco API as a global for tests window.monacoAPI = monaco; diff --git a/webpack-plugin/README.md b/webpack-plugin/README.md index e97f5c9e..1301252e 100644 --- a/webpack-plugin/README.md +++ b/webpack-plugin/README.md @@ -51,8 +51,6 @@ If using Webpack 4 or lower, it is necessary to use the file-loader instead of A ```js import * as monaco from 'monaco-editor'; -// or import * as monaco from 'monaco-editor/esm/vs/editor/editor.api'; -// if shipping only a subset of the features & languages is desired monaco.editor.create(document.getElementById('container'), { value: 'console.log("Hello, world")',