Skip to content

Commit

Permalink
Merge pull request #8 from rispa-io/fix/readme
Browse files Browse the repository at this point in the history
Update code examples in README
  • Loading branch information
Laiff authored Jun 23, 2017
2 parents 176ad81 + ac72765 commit 762f029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ import { Loadable } from '@rispa/vendor/loadable'
const loadable = (store, when) => Loadable({
LoadingComponent: () => null,
loader: () => import('./register'),
resolveModule: module => module(store, when),
resolveModule: module => module.default(store, when),
webpackRequireWeakId: () => require.resolveWeak('./register'),
})

Expand Down Expand Up @@ -211,7 +211,7 @@ import { Switch, Route } from 'react-router-dom'
const getRoutes = (store, when) => {
/* eslint-disable global-require */
const modules = [
require('feature-plugin')
require('feature-plugin').default
// $$ ADD HERE ~~ Do not remove
]

Expand Down

0 comments on commit 762f029

Please sign in to comment.