Skip to content

Commit

Permalink
fix build accidentally including generator support. fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Apr 3, 2017
1 parent a8a33e5 commit 2733672
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
sourceMap: true,
exclude: 'node_modules/**',
presets: [
'es2015-minimal-rollup',
['es2015', { loose:true, modules:false }],
'stage-0'
],
plugins: [
Expand Down
4 changes: 2 additions & 2 deletions src/contextualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
export default function Contextualize() {}

Contextualize.prototype.getChildContext = function() {
let { children, ...props } = this.props;
return props;
let { children, ...context } = this.props;
return context;
};

Contextualize.prototype.render = ({ children }) => children[0];

0 comments on commit 2733672

Please sign in to comment.