* Remove timers.js from build.js inject.
This commit is contained in:
parent
b6f1df264d
commit
17bb912927
2
build.js
2
build.js
|
@ -10,5 +10,5 @@ esbuild.buildSync({
|
|||
define: {
|
||||
global: "self",
|
||||
},
|
||||
inject: ["timers.js", "polyfill.js"],
|
||||
inject: ["polyfill.js"],
|
||||
});
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
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