Closed underfin closed 2 years ago
Here is code of global ployfill, the code has global key words, it will transformed and add import '\0polyfill-node:global.js'. But it is a self import, so we need skip it.
global
import '\0polyfill-node:global.js'
export default (typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
Indeed, using it results in the following -
(!) Circular dependencies polyfill-node:global.js -> polyfill-node:global.js
A look/merge at this proposed solution would be appreciated.
Aaand??
Description
Here is code of
global
ployfill, the code hasglobal
key words, it will transformed and addimport '\0polyfill-node:global.js'
. But it is a self import, so we need skip it.