Browse Source

Fix documentation (#2212)

Alexandru Dima 4 years ago
parent
commit
733d68af03
1 changed files with 4 additions and 4 deletions
  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') {