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

Esbuild minify options #6657

Closed
4 tasks done
hlege opened this issue Jan 27, 2022 · 1 comment
Closed
4 tasks done

Esbuild minify options #6657

hlege opened this issue Jan 27, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement: pending triage

Comments

@hlege
Copy link

hlege commented Jan 27, 2022

Clear and concise description of the problem

When use esbuild to minify its mangle variable names. Some use case its break the running script for example minify an angularjs app.

Suggested solution

Just like terserOptions we can introduce a configuration so we can define what we want to minify.

esbuildOptions.minify = {
  /** Documentation: https://esbuild.github.io/api/#minify */
  minifyWhitespace?: boolean;
  /** Documentation: https://esbuild.github.io/api/#minify */
  minifyIdentifiers?: boolean;
  /** Documentation: https://esbuild.github.io/api/#minify */
  minifySyntax?: boolean;
}

Alternative

No response

Additional context

No response

Validations

@hlege hlege changed the title Esbuild minify optios Esbuild minify options Jan 27, 2022
@bluwy
Copy link
Member

bluwy commented Jan 27, 2022

Very similar to #6065, but I think being able to have one less option is a plus. And would be fixed by #6178, so I'll close in favour of that instead.

@bluwy bluwy closed this as completed Jan 27, 2022
@Niputi Niputi added the duplicate This issue or pull request already exists label Jan 27, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists enhancement: pending triage
Projects
None yet
Development

No branches or pull requests

3 participants