mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-13 01:54:52 +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>
20 lines
635 B
JavaScript
20 lines
635 B
JavaScript
// Copyright 2019 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import '../cm_web_modes/cm_web_modes_cm.js';
|
|
|
|
import './CodeMirrorUtils.js';
|
|
import './TextEditorAutocompleteController.js';
|
|
import './CodeMirrorTextEditor.js';
|
|
|
|
import * as CodeMirrorTextEditor from './CodeMirrorTextEditor.js';
|
|
import * as CodeMirrorUtils from './CodeMirrorUtils.js';
|
|
import * as TextEditorAutocompleteController from './TextEditorAutocompleteController.js';
|
|
|
|
export {
|
|
CodeMirrorTextEditor,
|
|
CodeMirrorUtils,
|
|
TextEditorAutocompleteController,
|
|
};
|