web-tools/patches/vite-plugin-node-polyfills@0.28.0.patch
Kirill Zhumarin 7106e0e2ea Update deps
2026-10-11 23:14:52 +03:00

24 lines
738 B
Diff

diff --git a/shims/process/dist/index.cjs b/shims/process/dist/index.cjs
--- a/shims/process/dist/index.cjs
+++ b/shims/process/dist/index.cjs
@@ -150,7 +150,7 @@ process.nextTick = function (fun) {
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
- runTimeout(drainQueue);
+ queueMicrotask(drainQueue);
}
};
diff --git a/shims/process/dist/index.js b/shims/process/dist/index.js
--- a/shims/process/dist/index.js
+++ b/shims/process/dist/index.js
@@ -146,7 +146,7 @@ process.nextTick = function (fun) {
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
- runTimeout(drainQueue);
+ queueMicrotask(drainQueue);
}
};