Skip to content

Commit

Permalink
Merge pull request #48 from ai/webpack-fix
Browse files Browse the repository at this point in the history
Avoid webpack to insert setImmediate
  • Loading branch information
theKashey committed Oct 26, 2018
2 parents 49703d3 + 6088c73 commit 9f3711e
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 9f3711e

Please sign in to comment.