From 7e0bb7aa5102f1a7e5ee936e6c5e0b380cdbe7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Gurin?= Date: Sat, 2 Mar 2019 11:42:46 -0300 Subject: [PATCH] fix worker paths in parcel I just tried this instructions and I found this small detail for they to work perfectly --- docs/integrate-esm.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/integrate-esm.md b/docs/integrate-esm.md index 1353c079..47b1d672 100644 --- a/docs/integrate-esm.md +++ b/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'; }, };