putoutjs / minify

Minify with help of 🐊Putout
MIT License
12 stars 3 forks source link

Error with removing export values #22

Closed sirenkovladd closed 5 months ago

sirenkovladd commented 5 months ago

Error with removing export values

import { minify } from "@putout/minify";

const source = `function test() {
  return [1, 2];
}
export const [one, two] = test();`;

const result = minify(source);
console.log('>', result, '<');
❯ node i.js
>  <
coderaiser commented 5 months ago

The funny thing, that this is the same :)

export const [one, two] = test();`;

and:

const [one, two] = test();
export {
    one,
    two,

Just fixed in v3.19.6 🎉

sirenkovladd commented 5 months ago

Thank you