react-dev-utils: expect to export `guessEditor` in launchEditor.js
Created by: zhixiaoqiang
Is your proposal related to a problem? Yes
I want to use guessEditor
to do something, e.g.:
const [editor] = guessEditor()
if (editor === 'code') {
// some logic
}
Describe the solution you'd like
# https://github.com/facebook/create-react-app/blob/main/packages/react-dev-utils/launchEditor.js#L197
- function guessEditor() {}
+ export function guessEditor() {}
Describe alternatives you've considered
Copy the source code to my file
Additional context
nothing