mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
cm_web_modes/ was used both in a worker and in the normal browser context. However, both formatter_worker/ and text_editor/ included the relevant files in their scripts array. The fix is to make cm_web_modes a proper module and import either the browser (_cm.js) variant or the worker (_headless.js) variant. Bug: 1006759 Change-Id: I85c6f67102d8ffd94e073850b1ac7adcb289b1b2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1934218 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>