Skip to content

Conversation

IWANABETHATGUY
Copy link
Contributor

@IWANABETHATGUY IWANABETHATGUY commented Oct 13, 2025

@github-actions github-actions bot added the A-minifier Area - Minifier label Oct 13, 2025
Copy link
Contributor Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@IWANABETHATGUY IWANABETHATGUY changed the title feat: expose more options in oxc_minify_napi feat(napi/minify): expose join_vars, sequences, and max_iterations options Oct 13, 2025
@github-actions github-actions bot added the C-enhancement Category - New feature or request label Oct 13, 2025
@IWANABETHATGUY IWANABETHATGUY force-pushed the 10-13-feat_expose_more_options_in_oxc_minify_napi branch 2 times, most recently from 3ba2ae0 to b43e59e Compare October 13, 2025 07:41
@IWANABETHATGUY IWANABETHATGUY marked this pull request as ready for review October 13, 2025 07:44
@Copilot Copilot AI review requested due to automatic review settings October 13, 2025 07:44
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR exposes three minification options (join_vars, sequences, and passes) in the NAPI minify interface to provide more granular control over the compression behavior. The change replaces hardcoded values with configurable options that can be passed from JavaScript.

  • Adds three new optional fields to CompressOptions struct with proper documentation
  • Updates the TryFrom implementation to use the new configurable options instead of hardcoded values
  • Maps the JavaScript-friendly "passes" parameter to the internal "max_iterations" field

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@IWANABETHATGUY IWANABETHATGUY force-pushed the 10-13-feat_expose_more_options_in_oxc_minify_napi branch from dd4d65d to 1e05baa Compare October 13, 2025 07:50
@Boshen Boshen self-assigned this Oct 13, 2025
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Oct 14, 2025
Copy link
Member

Boshen commented Oct 14, 2025

Merge activity

@graphite-app graphite-app bot force-pushed the 10-13-feat_expose_more_options_in_oxc_minify_napi branch from 1e05baa to c19c9ec Compare October 14, 2025 08:10
@graphite-app graphite-app bot merged commit c19c9ec into main Oct 14, 2025
18 checks passed
@graphite-app graphite-app bot deleted the 10-13-feat_expose_more_options_in_oxc_minify_napi branch October 14, 2025 08:14
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-minifier Area - Minifier C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants