Skip to content

Commit

Permalink
Avoid webpack to insert setImmediate
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 26, 2018
1 parent 49703d3 commit 6088c73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
2 changes: 2 additions & 0 deletions src/util/index.js → src/util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export function deferAction(action) {
// Hidding setImmediate from Webpack to avoid inserting polyfill
const setImmediate = window.setImmediate;
if (typeof setImmediate !== 'undefined') {
setImmediate(action);
} else {
Expand Down
25 changes: 0 additions & 25 deletions src/util/.babelrc

This file was deleted.

0 comments on commit 6088c73

Please sign in to comment.