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
Copy file name to clipboardexpand all lines: CHANGELOG.md
+24
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,30 @@
28
28
29
29
However, thispreventsusingesbuildwithcertainlibrariesthatwouldotherwiseworkifBigIntliteralswereignored, suchaswitholdversionsofthe [`buffer`library](https://github.com/feross/buffer) before the library fixed support for running in environments without BigInt support. So with this release, esbuild will now turn BigInt literals into BigInt constructor calls (so `123n` becomes `BigInt(123)`) and generate a warning in this case. You can turn off the warning with `--log-override:bigint=silent` or restore the warning to an error with `--log-override:bigint=error` if needed.
Previouslythe`--drop:console`featurereplacedallmethodcallsoffofthe`console`globalwith`undefined`regardlessofhowlongthepropertyaccesschainwas (soitappliedto`console.log()`and`console.log.call(console)`and`console.log.not.a.method()`). However, itwaspointedoutthatthisbreaksusesof`console.log.bind(console)`. That's also incompatible with Terser'simplementationofthefeature, whichiswherethisfeatureoriginallycamefrom (itdoessupport`bind`). Sowiththisrelease, usingthisfeaturewithesbuildwillnowonlyreplaceonelevelofmethodcall (unlessextendedby`call`or`apply`) andwillreplacethemethodbeingcalledwithanemptyfunctionincomplexcases:
Somesoftware (suchasNotepadonWindows) cancreatetextfilesthatstartwiththethreebytes`0xEF 0xBB 0xBF`, whichisreferredtoasthe"byte order mark". Thisprefixisintendedtoberemovedbeforeusingthe text. Previouslyesbuild's `text` loader included this byte sequence in the string, which turns into a prefix of `\uFEFF` in a JavaScript string when decoded from UTF-8. With this release, esbuild's`text`loaderwillnowremovethesebyteswhentheyoccuratthestartofthe file.
0 commit comments