瀏覽代碼

fix worker paths in parcel

I just tried this instructions and I found this small detail for they to work perfectly
Sebastián Gurin 6 年之前
父節點
當前提交
7e0bb7aa51
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      docs/integrate-esm.md

+ 5 - 5
docs/integrate-esm.md

@@ -138,18 +138,18 @@ import * as monaco from 'monaco-editor';
 self.MonacoEnvironment = {
   getWorkerUrl: function(moduleId, label) {
     if (label === 'json') {
-      return './json.worker.bundle.js';
+      return './json.worker.js';
     }
     if (label === 'css') {
-      return './css.worker.bundle.js';
+      return './css.worker.js';
     }
     if (label === 'html') {
-      return './html.worker.bundle.js';
+      return './html.worker.js';
     }
     if (label === 'typescript' || label === 'javascript') {
-      return './ts.worker.bundle.js';
+      return './ts.worker.js';
     }
-    return './editor.worker.bundle.js';
+    return './editor.worker.js';
   },
 };