Files
react-native-devtools-frontend/front_end/text_editor/module.json
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

30 lines
687 B
JSON

{
"extensions": [
{
"type": "@TextUtils.TokenizerFactory",
"className": "TextEditor.CodeMirrorUtils.TokenizerFactory"
},
{
"type": "@UI.TextEditorFactory",
"className": "TextEditor.CodeMirrorTextEditorFactory"
}
],
"dependencies": [
"ui",
"platform",
"common",
"cm",
"cm_web_modes"
],
"scripts": [],
"modules": [
"text_editor.js",
"CodeMirrorUtils.js",
"TextEditorAutocompleteController.js",
"CodeMirrorTextEditor.js"
],
"resources": [
"autocompleteTooltip.css",
"cmdevtools.css"
]
}