From fdaf16577515cb65534b3f1caba29852f64b6f77 Mon Sep 17 00:00:00 2001 From: Timothee Guerin Date: Mon, 16 Sep 2024 11:16:52 -0700 Subject: [PATCH] Fix monaco editor freeze (#1546) Docusaurus https://github.com/facebook/docusaurus/issues/9303 doesn't like some css nesting that monaco editor started using in 0.47.0 For now same as typespec repo we pin to old version of the editor. Seems like however we might be able to build with `USE_SIMPLE_CSS_MINIFIER=true` --- packages/website/package.json | 1 + pnpm-lock.yaml | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index b3c3dd2f3d..cfa4726119 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -28,6 +28,7 @@ "clsx": "^2.1.1", "es-module-shims": "~1.10.0", "prism-react-renderer": "^2.4.0", + "monaco-editor": "~0.46.0", "prismjs": "~1.29.0", "react": "~18.3.1", "react-dom": "~18.3.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1912b72a34..ebe8205c1c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2358,6 +2358,9 @@ importers: es-module-shims: specifier: ~1.10.0 version: 1.10.0 + monaco-editor: + specifier: ~0.46.0 + version: 0.46.0 prism-react-renderer: specifier: ^2.4.0 version: 2.4.0(react@18.3.1) @@ -2424,7 +2427,7 @@ importers: version: 6.2.0(webpack@5.94.0) monaco-editor-webpack-plugin: specifier: ~7.1.0 - version: 7.1.0(monaco-editor@0.51.0)(webpack@5.94.0) + version: 7.1.0(monaco-editor@0.46.0)(webpack@5.94.0) rimraf: specifier: ~6.0.1 version: 6.0.1 @@ -23531,17 +23534,17 @@ snapshots: monaco-editor-core@0.51.0: {} - monaco-editor-webpack-plugin@7.1.0(monaco-editor@0.51.0)(webpack@5.94.0(@swc/core@1.7.26(@swc/helpers@0.5.13))): + monaco-editor-webpack-plugin@7.1.0(monaco-editor@0.46.0)(webpack@5.94.0): dependencies: loader-utils: 2.0.4 - monaco-editor: 0.51.0 - webpack: 5.94.0(@swc/core@1.7.26(@swc/helpers@0.5.13)) + monaco-editor: 0.46.0 + webpack: 5.94.0 - monaco-editor-webpack-plugin@7.1.0(monaco-editor@0.51.0)(webpack@5.94.0): + monaco-editor-webpack-plugin@7.1.0(monaco-editor@0.51.0)(webpack@5.94.0(@swc/core@1.7.26(@swc/helpers@0.5.13))): dependencies: loader-utils: 2.0.4 monaco-editor: 0.51.0 - webpack: 5.94.0 + webpack: 5.94.0(@swc/core@1.7.26(@swc/helpers@0.5.13)) monaco-editor@0.46.0: {}