Files
react-native-devtools-frontend/front_end/text_editor/text_editor.js
T
Tim van der Lippe d1cfda327d Migrate text_editor/ and cm_web_modes/ to ESM
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>
2019-11-27 14:12:52 +00:00

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,
};