rspack icon indicating copy to clipboard operation
rspack copied to clipboard

perf: avoid extra parsing and codegen while enabling minify

Open hyf0 opened this issue 2 years ago • 0 comments

What problem does this feature solve?

Now: Module AST -> per_codegen -> Chunk string -> parse to chunk AST -> swc minify -> Chunk AST codegen After: Module AST -> merge as a Chunk AST -> swc minify -> Chunk AST codegen in parallel

We could save the extra time for codegen and parsing.

What does the proposed API of configuration look like?

No response

hyf0 avatar Feb 21 '23 05:02 hyf0