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
The text was updated successfully, but these errors were encountered:
cyan-2048
changed the title
Do not use Object.getOwnPropertyDescriptors when targetting anything lower than es2017
Do not use Object.getOwnPropertyDescriptors when target is set to anything lower than es2017
Feb 11, 2025
this has bothered me for a while actually, since you can't even polyfill it by importing npm packages if building with esbuild/vite, because these runtime functions are added before anything else. adding a banner is unfavorable as this runtime function is not always present in the chunked file.
as a result, I have resorted to creating a separate file for my polyfills, and also building it with esbuild separately.
related issue #2631
Object.getOwnPropertyDescriptors
is an es2017 static method (source: 1, 2)However esbuild uses this method even if you set the target to es6.
hyrious.me/esbuild-repl/?version=0.25.0
Input:
Output:
The text was updated successfully, but these errors were encountered: