Skip to content

Commit e71f155

Browse files
committed
fix(*): babel polyfill require guard, refs s-panferov#121, s-panferov#133
1 parent 4b66ab7 commit e71f155

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/entry.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
require('source-map-support').install();
2-
require('babel-polyfill');
2+
3+
if (!global._babelPolyfill) {
4+
require('babel-polyfill');
5+
}
36

47
module.exports = require('./index');

0 commit comments

Comments
 (0)