Permalink
Browse files

Fix `react-web start` "Uncaught ReferenceError: regeneratorRuntime is…

  • Loading branch information...
1 parent 0bdd163 commit be22b4e45c9c03e3e2fd5f7ca6e63abbfc0c3f8d @flyskywhy flyskywhy committed Aug 15, 2016
Showing with 4 additions and 1 deletion.
  1. +1 −1 index.web.js
  2. +1 −0 package.json
  3. +2 −0 web/webpack.config.js
View
@@ -1,4 +1,4 @@
-import React from 'react';
+import 'babel-polyfill';
import {AppRegistry} from 'react-native';
import Noder from './src';
View
@@ -46,6 +46,7 @@
"devDependencies": {
"babel-eslint": "^6.1.0",
"babel-loader": "^6.2.4",
+ "babel-polyfill": "^6.13.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-1": "^6.5.0",
@@ -31,8 +31,10 @@ module.exports = {
extensions: ['', '.js', '.jsx'],
},
entry: isProd? [
+ 'babel-polyfill',
config.paths.index
]: [
+ 'babel-polyfill',
'webpack-dev-server/client?http://' + IP + ':' + PORT,
'webpack/hot/only-dev-server',
config.paths.index,

0 comments on commit be22b4e

Please sign in to comment.