Home

oxc-project/oxc

Status:Indexed
Analyzed Dec 23, 202510K+ starsRust

⚓ A collection of high-performance JavaScript tools.

Back to Issues
#17299
Easy

oxfmt: 0.19.0+ throw DataCloneError in Bun

View on GitHub

Summary

The oxfmt tool is failing in Bun due to passing non-copyable options to functions that expect clonable data for Web Workers. The fix involves identifying and modifying the data passed to `formatFile` and `formatEmbeddedCode` to ensure it adheres to the Structured Clone Algorithm.

Skills Required

RustJavaScript/TypeScript (understanding of APIs)Understanding of serialization/cloning mechanisms

Labels

A-formatter