Given an inject such as:
import jquery from 'jquery';
export { jquery as 'window.jQuery' };
I should be able to rewrite it as:
export { default as 'window.jQuery' } from 'jquery';
However, esbuild spits this out:
Using the string "window.jQuery" as an export name is not supported in the configured target environment ("chrome111.0", "edge111.0", "firefox112.0", "ios16.4", "safari16.4")
Odd, so I try the targets individually:
✔️ chrome111.0
❌ edge111.0
❌ firefox112.0
❌ ios16.4
❌ safari16.4
I think there's something wrong with the browser support detection.
esbuild playground
This is somewhat similar to #3343 except the target is a browser instead.