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>
30 lines
687 B
JSON
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"
|
|
]
|
|
} |