ember-cli-fastboot icon indicating copy to clipboard operation
ember-cli-fastboot copied to clipboard

[queueMicrotask] is missing in fastboot sandbox

Open eugenioenko opened this issue 9 months ago • 0 comments

Recently I've upgraded the package @apollo/client to version 3.9.10 in my Ember app and this version is using the global function queueMicrotask which is not available in the default config of fastboot sandbox here:

https://github.com/ember-fastboot/ember-cli-fastboot/blob/1e6ed038608305c6c0c6008e07e302e6a1b5ce16/packages/fastboot/src/sandbox.js#L24

When queueMicrotask is called, fastboot crashes because its is not defined.

I see setTimeout being set, but not queueMicrotask. Would it make sense to add it to the default sandbox?

eugenioenko avatar Apr 30 '24 22:04 eugenioenko