microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
js-patched/open-main.js
16lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. |
| 3 | |
| 4 | 'use strict'; |
| 5 | var open = require('./index.js'); |
| 6 | |
| 7 | module.exports = function(target, opts) { |
| 8 | if (process.env.REACT_DEBUGGER) { |
| 9 | if (opts.app) { |
| 10 | console.log("Debugger for React Native is configured. Skipping launch of " + opts.app); |
| 11 | } |
| 12 | return; |
| 13 | } |
| 14 | |
| 15 | return open(target, opts); |
| 16 | }; |
| 17 | |