Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Include babel pollyfill
Browse files Browse the repository at this point in the history
This was needed specifically for async and await in this scenario.
I know however that this pollyfill is very large, so it might be better
to just include the async/await pollyfill that I need instead of the
whole thing.
  • Loading branch information
0livare committed Mar 6, 2018
1 parent a2f7a8a commit 1204f98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"babel-cli": "6.16.0",
"babel-core": "6.17.0",
"babel-loader": "^7.1.2",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-register": "6.16.3",
Expand Down
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import Root from './components/Root'
import { loadCourses } from './redux'
import { loadAuthors } from './redux'

import 'babel-core/register'
import 'babel-polyfill'

const store = configureStore()
store.dispatch(loadCourses())
store.dispatch(loadAuthors())
Expand Down
1 change: 1 addition & 0 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
entry: [
'react-hot-loader/patch',
'webpack-hot-middleware/client',
'babel-polyfill',
path.resolve(__dirname, 'src/index.tsx'),
],
devtool: 'eval-source-map',
Expand Down

0 comments on commit 1204f98

Please sign in to comment.