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
I’m not sure if it merits a warning or not (would lean towards no), but “since the _jsxDEV one is already omitted” seems unrelated? _jsxDEV is a binding identifier and could have any value / may or may not have been declared in the global obj env or the global lexical env. this is a keyword which is statically known to be undefined in this context.
When a code transpiled from JSX by babel like
is passed to esbuild, it does not output any warnings. (0905d85)
But when
is passed (this is generated in the same situation with #2534), it outputs a warning (
this-is-undefined-in-esm
).stackblitz reproduction
I expect this warning to be omitted, since the
_jsxDEV
one is already omitted.related: vitejs/vite#10098
The text was updated successfully, but these errors were encountered: