Home / Function/ stripModuleIdHash() — vue Function Reference

stripModuleIdHash() — vue Function Reference

Architecture documentation for the stripModuleIdHash() function in util.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  e2bc20cb_f578_928b_9bc7_e455a4609eed["stripModuleIdHash()"]
  cfb31c39_d51c_a2b5_4da2_0c5d7c929287["apply()"]
  cfb31c39_d51c_a2b5_4da2_0c5d7c929287 -->|calls| e2bc20cb_f578_928b_9bc7_e455a4609eed
  style e2bc20cb_f578_928b_9bc7_e455a4609eed fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/webpack-plugin/util.ts lines 60–67

export const stripModuleIdHash = id => {
  if (isWebpack5) {
    // Webpack >= 5.0.0
    return id.replace(/\|\w+$/, '')
  }
  // Webpack < 5.0.0
  return id.replace(/\s\w+$/, '')
}

Subdomains

Called By

Frequently Asked Questions

What does stripModuleIdHash() do?
stripModuleIdHash() is a function in the vue codebase.
What calls stripModuleIdHash()?
stripModuleIdHash() 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