-
-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from MyEtherWallet/master-hmr-fix-revert
Revert "Hot module reload fixes (#181)"
- Loading branch information
Showing
5 changed files
with
64 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,25 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"transform-runtime", | ||
{ | ||
"helpers": false, | ||
"polyfill": false, | ||
"regenerator": true, | ||
"moduleName": "babel-runtime" | ||
"plugins": [ | ||
[ | ||
"transform-runtime", { | ||
"helpers": false, | ||
"polyfill": false, | ||
"regenerator": true, | ||
"moduleName": "babel-runtime" | ||
} | ||
], | ||
["module-resolver", { | ||
"root": ["./common"], | ||
"alias": { | ||
"underscore": "lodash" | ||
}, | ||
"cwd": "babelrc" | ||
}], | ||
"react-hot-loader/babel"], | ||
"presets": ["es2015", "react", "stage-0", "flow"], | ||
"env": { | ||
"production": { | ||
"presets": ["react-optimize"] | ||
} | ||
], | ||
[ | ||
"module-resolver", | ||
{ | ||
"root": ["./common"], | ||
"alias": { | ||
"underscore": "lodash" | ||
}, | ||
"cwd": "babelrc" | ||
} | ||
], | ||
"react-hot-loader/babel" | ||
], | ||
"presets": ["es2015", "react", "stage-0", "flow"], | ||
"env": { | ||
"production": { | ||
"presets": ["react-optimize"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
import { browserHistory, Redirect, Route } from 'react-router'; | ||
import { useBasename } from 'history'; | ||
import { App } from 'containers'; | ||
import GenerateWallet from 'containers/Tabs/GenerateWallet'; | ||
import ViewWallet from 'containers/Tabs/ViewWallet'; | ||
import Help from 'containers/Tabs/Help'; | ||
import Swap from 'containers/Tabs/Swap'; | ||
import SendTransaction from 'containers/Tabs/SendTransaction'; | ||
import Contracts from 'containers/Tabs/Contracts'; | ||
import ENS from 'containers/Tabs/ENS'; | ||
|
||
export const history = getHistory(); | ||
export const Routing = () => | ||
<Route name="App" path="" component={App}> | ||
<Route name="GenerateWallet" path="/" component={GenerateWallet} /> | ||
<Route name="ViewWallet" path="/view-wallet" component={ViewWallet} /> | ||
<Route name="Help" path="/help" component={Help} /> | ||
<Route name="Swap" path="/swap" component={Swap} /> | ||
<Route name="Send" path="/send-transaction" component={SendTransaction} /> | ||
<Route name="Contracts" path="/contracts" component={Contracts} /> | ||
<Route name="ENS" path="/ens" component={ENS} /> | ||
<Redirect from="/*" to="/" /> | ||
</Route>; | ||
|
||
function getHistory() { | ||
const basename = ''; | ||
return useBasename(() => browserHistory)({ basename }); | ||
} |