Revert "* Remove timers.js from build.js inject."
This reverts commit 17bb912927
.
This commit is contained in:
parent
50271fad44
commit
184eed8be8
2
build.js
2
build.js
|
@ -10,5 +10,5 @@ esbuild.buildSync({
|
||||||
define: {
|
define: {
|
||||||
global: "self",
|
global: "self",
|
||||||
},
|
},
|
||||||
inject: ["polyfill.js"],
|
inject: ["timers.js", "polyfill.js"],
|
||||||
});
|
});
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
import { setTimeout, setInterval, clearTimeout, clearInterval } from 'timers-browserify'
|
||||||
|
|
||||||
|
var scope = typeof self !== "undefined" && self || typeof self !== "undefined" && self || window;
|
||||||
|
|
||||||
|
scope.setTimeout = setTimeout;
|
||||||
|
scope.setInterval = setInterval;
|
||||||
|
scope.clearTimeout = clearTimeout;
|
||||||
|
scope.clearInterval = clearInterval;
|
Loading…
Reference in New Issue