Skip to content

Commit

Permalink
chore(rollup): add global hoist-non-react-statics
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Apr 6, 2018
1 parent e2de1c2 commit 6294de8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const umdConfig = Object.assign({}, configBase, {
format: 'umd',
name: 'loadable',
exports: 'named',
globals: { react: 'React' },
globals: { react: 'React', 'hoist-non-react-statics': 'hoistNonReactStatics' },
sourcemap: true,
},
})
Expand Down Expand Up @@ -60,14 +60,14 @@ const esConfig = Object.assign({}, configBase, {
{
file: 'dist/loadable-components.es.js',
format: 'es',
globals: { react: 'React' },
globals: { react: 'React', 'hoist-non-react-statics': 'hoistNonReactStatics' },
sourcemap: true,
},
{
file: 'dist/loadable-components.cjs.js',
format: 'cjs',
exports: 'named',
globals: { react: 'React' },
globals: { react: 'React', 'hoist-non-react-statics': 'hoistNonReactStatics' },
sourcemap: true,
},
],
Expand Down

0 comments on commit 6294de8

Please sign in to comment.