js_to_oxc icon indicating copy to clipboard operation
js_to_oxc copied to clipboard

Rust code will not be formatted if the js source code is long

Open IWANABETHATGUY opened this issue 1 year ago • 1 comments

async function test() {
let { b } = await __vitePreload(async () => { const { b } = await import('./lib-!~{002}~.js');return { b }},true?__VITE_PRELOAD__:void 0);
}

try this snippet in playground.

IWANABETHATGUY avatar Aug 18 '24 13:08 IWANABETHATGUY

This is intentional because the the rust formatter is loaded as wasm and somehow very very slow when the generated rust code is very long.

kermanx avatar Aug 18 '24 13:08 kermanx