Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with removing export values #22

Closed
sirenkovladd opened this issue Jun 10, 2024 · 2 comments
Closed

Error with removing export values #22

sirenkovladd opened this issue Jun 10, 2024 · 2 comments

Comments

@sirenkovladd
Copy link
Contributor

  • Version (npm -v): 10.5.2
  • Node Version node -v: v20.13.1
  • OS (uname -a on Linux): Darwin arm64

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 added a commit to coderaiser/putout that referenced this issue Jun 10, 2024
@coderaiser
Copy link
Contributor

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
Copy link
Contributor Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants