Skip to content

Commit

Permalink
Rename debugger worker file
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jun 28, 2016
1 parent 2bc1e36 commit 8154432
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If you're debugging with a real device, you need to edit [node_modules/react-nat

#### Get $r or global variables of react-native runtime in the console

You need to switch worker thread for console, open `Sources` tab on Chrome DevTools, and select `*.worker.js` in `Threads`.
You need to switch worker thread for console, open `Sources` tab on Chrome DevTools, and select `debugger.worker.js` in `Threads`.

__*NOTE*__ Currently only for RN for iOS (see [this](https://github.com/facebook/react-native/blob/master/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js#L218)) / RND for macOS.

Expand Down
2 changes: 1 addition & 1 deletion app/containers/Debugger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Edit from https://github.com/facebook/react-native/blob/master/local-cli/server/util/debugger.html

import WebSocket from 'ws';
import Worker from 'worker!./debuggerWorker'; // eslint-disable-line
import Worker from 'worker?name=debugger.worker.js!./debuggerWorker'; // eslint-disable-line
import { Component, PropTypes } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
Expand Down
2 changes: 1 addition & 1 deletion scripts/package.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

rm -rf dist/js release/
rm -rf release/
npm run build
cd dist && npm i && cd ..
electron-packager dist/ \
Expand Down

0 comments on commit 8154432

Please sign in to comment.