jspm/babel-plugin-transform-cjs-dew

globalThis support

guybedford opened this issue · 0 comments

The current global detection outputted here is var _global = typeof self !== "undefined" ? self : global;, but some environments support neither self nor global (eg Deno).

We should update this detection to be -

var _global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;