error() — vite Function Reference
Architecture documentation for the error() function in pluginContainer.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD fe29bf81_68d5_1c19_144c_b2f9047027e2["error()"] c261dae5_9c68_4b7d_8b09_fe13190425fe["PluginContext"] fe29bf81_68d5_1c19_144c_b2f9047027e2 -->|defined in| c261dae5_9c68_4b7d_8b09_fe13190425fe 8127cae8_510b_1333_1a76_2d21b503c3a6["error()"] 8127cae8_510b_1333_1a76_2d21b503c3a6 -->|calls| fe29bf81_68d5_1c19_144c_b2f9047027e2 dcf6f9d5_316b_0287_6984_8729d3e6c0aa["transform()"] dcf6f9d5_316b_0287_6984_8729d3e6c0aa -->|calls| fe29bf81_68d5_1c19_144c_b2f9047027e2 9282ac90_d29c_cf0b_bdf8_00ac31e9ba20["_formatLog()"] 9282ac90_d29c_cf0b_bdf8_00ac31e9ba20 -->|calls| fe29bf81_68d5_1c19_144c_b2f9047027e2 9282ac90_d29c_cf0b_bdf8_00ac31e9ba20["_formatLog()"] fe29bf81_68d5_1c19_144c_b2f9047027e2 -->|calls| 9282ac90_d29c_cf0b_bdf8_00ac31e9ba20 8127cae8_510b_1333_1a76_2d21b503c3a6["error()"] fe29bf81_68d5_1c19_144c_b2f9047027e2 -->|calls| 8127cae8_510b_1333_1a76_2d21b503c3a6 style fe29bf81_68d5_1c19_144c_b2f9047027e2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/server/pluginContainer.ts lines 910–917
override error(
e: string | RollupError,
position?: number | { column: number; line: number },
): never {
// error thrown here is caught by the transform middleware and passed on
// the error middleware.
throw this._formatLog(e, position)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does error() do?
error() is a function in the vite codebase, defined in packages/vite/src/node/server/pluginContainer.ts.
Where is error() defined?
error() is defined in packages/vite/src/node/server/pluginContainer.ts at line 910.
What does error() call?
error() calls 2 function(s): _formatLog, error.
What calls error()?
error() is called by 3 function(s): _formatLog, error, transform.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free