소스 검색

Fix documentation (#2212)

Alexandru Dima 4 년 전
부모
커밋
733d68af03
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      docs/integrate-esm.md

+ 4 - 4
docs/integrate-esm.md

@@ -75,10 +75,10 @@ self.MonacoEnvironment = {
     if (label === 'json') {
       return './json.worker.bundle.js';
     }
-    if (label === 'css') {
+    if (label === 'css' || label === 'scss' || label === 'less') {
       return './css.worker.bundle.js';
     }
-    if (label === 'html') {
+    if (label === 'html' || label === 'handlebars' || label === 'razor') {
       return './html.worker.bundle.js';
     }
     if (label === 'typescript' || label === 'javascript') {
@@ -146,10 +146,10 @@ self.MonacoEnvironment = {
     if (label === 'json') {
       return './json.worker.js';
     }
-    if (label === 'css') {
+    if (label === 'css' || label === 'scss' || label === 'less') {
       return './css.worker.js';
     }
-    if (label === 'html') {
+    if (label === 'html' || label === 'handlebars' || label === 'razor') {
       return './html.worker.js';
     }
     if (label === 'typescript' || label === 'javascript') {