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.
- Transform
Summary - Counters describing what the transform changed in a single file.
Statics§
- DEBUG_
LOG - Forces the plugin to report at
LogLevel::Debugwhatever thelogLeveloption 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-outputCargo feature), so debug logs explain how to get the output.