Since global comes mainly from Node.js, we should by default provide it's polyfill in the nodeless preset so that other presets don't need to define it.
For example Deno preset shouldn't need to define that it needs the global polyfill, as we expect the target environment to compose env(nodeless, deno) together.
๐ Linked issue
n/a
โ Type of change
[ ] ๐ Documentation (updates to the documentation, readme, or JSdoc annotations)
[x] ๐ Bug fix (a non-breaking change that fixes an issue)
[ ] ๐ Enhancement (improving an existing functionality like performance)
[ ] โจ New feature (a non-breaking change that adds functionality)
[ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
[ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
Since
global
comes mainly from Node.js, we should by default provide it's polyfill in the nodeless preset so that other presets don't need to define it.For example Deno preset shouldn't need to define that it needs the global polyfill, as we expect the target environment to compose
env(nodeless, deno)
together.๐ Linked issue
n/a
โ Type of change
๐ Description
๐ Checklist