Skip to content

Commit 55dca23

Browse files
committed
Only launch PowerShell agent if no editor is configured
1 parent 39289bb commit 55dca23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-error-overlay/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
const { launchEditor } = require('react-dev-utils/launchEditor');
1212

1313
module.exports = function createLaunchEditorMiddleware() {
14-
if (process.platform === 'win32') {
14+
if (process.platform === 'win32' && !process.env.REACT_EDITOR) {
1515
const { launchPowerShellAgent } = require('react-dev-utils/launchEditor');
1616
launchPowerShellAgent();
1717
}

0 commit comments

Comments
 (0)