Skip to content

Commit 6294de8

Browse files
committed
chore(rollup): add global hoist-non-react-statics
1 parent e2de1c2 commit 6294de8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const umdConfig = Object.assign({}, configBase, {
2929
format: 'umd',
3030
name: 'loadable',
3131
exports: 'named',
32-
globals: { react: 'React' },
32+
globals: { react: 'React', 'hoist-non-react-statics': 'hoistNonReactStatics' },
3333
sourcemap: true,
3434
},
3535
})
@@ -60,14 +60,14 @@ const esConfig = Object.assign({}, configBase, {
6060
{
6161
file: 'dist/loadable-components.es.js',
6262
format: 'es',
63-
globals: { react: 'React' },
63+
globals: { react: 'React', 'hoist-non-react-statics': 'hoistNonReactStatics' },
6464
sourcemap: true,
6565
},
6666
{
6767
file: 'dist/loadable-components.cjs.js',
6868
format: 'cjs',
6969
exports: 'named',
70-
globals: { react: 'React' },
70+
globals: { react: 'React', 'hoist-non-react-statics': 'hoistNonReactStatics' },
7171
sourcemap: true,
7272
},
7373
],

0 commit comments

Comments
 (0)