How to use transformWithOxc API to minify code?
#338
-
|
When use (await vite.transformWithEsbuild(code, "index.js", {
minify: true,
})).code;So how to convert it to |
Beta Was this translation helpful? Give feedback.
Answered by
sapphi-red
Aug 6, 2025
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
otomad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
transformWithOxcdoes not have that feature.You can use
oxc-minifyfor that purpose.https://www.npmjs.com/package/oxc-minify