throwHtmlParseError() — vite Function Reference
Architecture documentation for the throwHtmlParseError() function in vitestSetup.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 2f02250e_c9b5_1182_af18_cdb92e1a2740["throwHtmlParseError()"] 804dc5f9_3eef_472e_8575_1233b4358f17["vitestSetup.ts"] 2f02250e_c9b5_1182_af18_cdb92e1a2740 -->|defined in| 804dc5f9_3eef_472e_8575_1233b4358f17 9c39db4a_5ddd_67a5_69e8_01c342e795f3["loadConfig()"] 9c39db4a_5ddd_67a5_69e8_01c342e795f3 -->|calls| 2f02250e_c9b5_1182_af18_cdb92e1a2740 style 2f02250e_c9b5_1182_af18_cdb92e1a2740 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/vitestSetup.ts lines 114–128
function throwHtmlParseError() {
return {
name: 'vite-plugin-throw-html-parse-error',
configResolved(config: ResolvedConfig) {
const warn = config.logger.warn
config.logger.warn = (msg, opts) => {
// convert HTML parse warnings to make it easier to test
if (msg.includes('Unable to parse HTML;')) {
throw new Error(msg)
}
warn.call(config.logger, msg, opts)
}
},
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does throwHtmlParseError() do?
throwHtmlParseError() is a function in the vite codebase, defined in playground/vitestSetup.ts.
Where is throwHtmlParseError() defined?
throwHtmlParseError() is defined in playground/vitestSetup.ts at line 114.
What calls throwHtmlParseError()?
throwHtmlParseError() is called by 1 function(s): loadConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free