Preserve #__PURE__ annotations (#347)

This commit is contained in:
Mateusz Burzyński 2019-05-28 01:01:12 +02:00 committed by Leah
parent 22ec94a4c9
commit 445fde2ff0

View File

@ -594,7 +594,9 @@ function createConfig(options, entry, format, writeMeta) {
options.compress !== false && [
terser({
sourcemap: true,
output: { comments: false },
output: {
comments: (node, comment) => /[@#]__PURE__/.test(comment.value),
},
compress: Object.assign(
{
keep_infinity: true,