validate() — vue Function Reference
Architecture documentation for the validate() function in util.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 00456468_ee40_8389_e3b5_e9b1b9c1d846["validate()"] 99a6affb_d8d8_b016_2ca6_5459e015e0f9["util.ts"] 00456468_ee40_8389_e3b5_e9b1b9c1d846 -->|defined in| 99a6affb_d8d8_b016_2ca6_5459e015e0f9 a49da80f_b793_f663_40e5_6baf1d842252["apply()"] a49da80f_b793_f663_40e5_6baf1d842252 -->|calls| 00456468_ee40_8389_e3b5_e9b1b9c1d846 style 00456468_ee40_8389_e3b5_e9b1b9c1d846 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/server-renderer/src/webpack-plugin/util.ts lines 10–33
export const validate = compiler => {
if (compiler.options.target !== 'node') {
warn('webpack config `target` should be "node".')
}
if (compiler.options.output) {
if (compiler.options.output.library) {
// Webpack >= 5.0.0
if (compiler.options.output.library.type !== 'commonjs2') {
warn('webpack config `output.library.type` should be "commonjs2".')
}
} else if (compiler.options.output.libraryTarget !== 'commonjs2') {
// Webpack < 5.0.0
warn('webpack config `output.libraryTarget` should be "commonjs2".')
}
}
if (!compiler.options.externals) {
tip(
'It is recommended to externalize dependencies in the server build for ' +
'better build performance.'
)
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does validate() do?
validate() is a function in the vue codebase, defined in packages/server-renderer/src/webpack-plugin/util.ts.
Where is validate() defined?
validate() is defined in packages/server-renderer/src/webpack-plugin/util.ts at line 10.
What calls validate()?
validate() is called by 1 function(s): apply.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free