You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our use case we are supplying our own polyfill for everything already so we set target to "Latest" to avoid dnt polyfills -- but since Promise.withResolvers is hardcoded to always polyfill, it's breaking our dnt generation runs:
src/_dnt.polyfills.ts:1:9 - error TS2669: Augmentations for the global scope can only be directly nested in external modules or ambient module declarations.
1 declare global {
~~~~~~
error: Uncaught (in promise) Error: Had 1 diagnostics.
throw new Error(`Had ${diagnostics.length} diagnostics.`);
The text was updated successfully, but these errors were encountered:
Yes! I came here looking for some way to opt out of polyfills. (for me it's the Array.fromAsync, which has quite okay browser support nowadays).
I read the whole README and read all about shims only to realize that apparently polyfills are something separate in DNT that cannot be opted out of currently?
In our use case we are supplying our own polyfill for everything already so we set target to
"Latest"
to avoid dnt polyfills -- but sincePromise.withResolvers
is hardcoded to always polyfill, it's breaking our dnt generation runs:The text was updated successfully, but these errors were encountered: