chore(oxc_minify_napi): expose more options struct#13239
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR exposes additional minify-related struct types in the NAPI bindings for the oxc_minify library. The change makes compress and mangle options structs publicly available through the library's API.
- Expands the public API by exposing
CompressOptions,CompressOptionsKeepNames,MangleOptions, andMangleOptionsKeepNamesstructs - Updates the module's public exports to include these additional option types alongside the existing
MinifyOptions
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |

Allow the downstream user to construct a napi options on their own, a use case in rolldown https://github.com/rolldown/rolldown/pull/5804/files#diff-56038ed67657ce910f150123cdc2d8ab42bd9bcd9745192c3127f2d837c78865R248, we need to convert options back to
oxc_minify_napi, sinceoxc::minify::optionsdid not implementtoNapitrait.