Module page_static_info

Source

Re-exports§

pub use collect_exported_const_visitor::Const;

Modules§

collect_exported_const_visitor
collect_exports_visitor

Structs§

ExportInfo
ExportInfoWarning
MiddlewareConfig
PageStaticInfo
RscModuleInfo

Enums§

Amp

Functions§

collect_exports
Collects static page export information for the next.js from given source’s AST. This is being used for some places like detecting page is a dynamic route or not, or building a PageStaticInfo object.
collect_rsc_module_info
Parse comments from the given source code and collect the RSC module info. This doesn’t use visitor, only read comments to parse necessary information.
extract_exported_const_values
Extracts the value of an exported const variable named exportedName (e.g. “export const config = { runtime: ‘edge’ }”) from swc’s AST. The value must be one of