mirror of
https://github.com/developit/microbundle.git
synced 2026-01-25 14:06:50 +00:00
Preserve #__PURE__ annotations (#347)
This commit is contained in:
parent
22ec94a4c9
commit
445fde2ff0
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user