next.js
9d5f62eb - refactor(analysis): rust based page-static-info, deprecate js parse interface in next-swc (#59300)

Commit
1 year ago
refactor(analysis): rust based page-static-info, deprecate js parse interface in next-swc (#59300) ### Description This PR refactors existing `analysis/get-static-page-info`, moves over most of parse / ast visiting logic into next-swc's rust codebase. By having this, turbopack can reuse same logic to extract info for the analysis. Also as a side effect, this removes JS side parse which is known to be inefficient due to serialization / deserialization. The entrypoint `getPageStaticInfo` is still in the existing `get-page-static-info`, only for extracting / visiting logic is moved. There are some JS specific context to postprocess extracted information which would require additional effort to move into. Closes PACK-2088
Author
Parents
Loading