Skip to main content

Module logger

Module logger 

Source
Expand description

Build-time reporting.

Mirrors what the Babel/Vite optimize pipeline prints on the JavaScript side so a Next.js build driven by this plugin can be inspected the same way. Output is opt-in through the logLevel plugin option and goes to stdout, which both the Wasm host and a native embedder capture.

Structs§

Logger
Reports what the transform did, at the verbosity the user asked for.
TransformSummary
Counters describing what the transform changed in a single file.

Statics§

DEBUG_LOG
Forces the plugin to report at LogLevel::Debug whatever the logLevel option says, so the emitted code of every transformed file can be inspected without threading a config change through the JavaScript side.

Functions§

program_to_code
Stand-in used when the code generator is not compiled in (see the debug-output Cargo feature), so debug logs explain how to get the output.