Skip to content

Conversation

goto-bus-stop
Copy link
Member

Comment on lines +132 to +136
var ProcessNextTick = typeof queueMicrotask === 'function'
? queueMicrotask
: typeof setImmediate === 'function'
? setImmediate
: setTimeout;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use process.nextTick instead so it has the same shared queue behaviour as in node.js. Would be a breaking change for webpack 5 users who might not be polyfilling the process global yet.

@goto-bus-stop goto-bus-stop marked this pull request as draft February 28, 2021 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant