//! some license for this library
const foo = 'foobarfoobar'
console.log(foo)
is minified to
console.log("foobarfoobar");
while
//! some license for this library
const foo = 'foobarfoobar'
console.log(foo)
console.log(foo)
is minified to
//! some license for this library
const foo = "foobarfoobar";
console.log(foo), console.log(foo);
Since this library is included, I expect the license comment to be preserved.
esbuild1 and SWC keep these.
is minified to
while
is minified to
Since this library is included, I expect the license comment to be preserved.
esbuild1 and SWC keep these.
Footnotes
the input code is a bit different because of how esbuild inlines values ↩