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
  d684c337_83a8_2e6a_ffb4_92e30fe4a4f8["stripModuleIdHash()"]
  99a6affb_d8d8_b016_2ca6_5459e015e0f9["util.ts"]
  d684c337_83a8_2e6a_ffb4_92e30fe4a4f8 -->|defined in| 99a6affb_d8d8_b016_2ca6_5459e015e0f9
  cbcadca6_4ebf_6255_caf8_59eb024b085c["apply()"]
  cbcadca6_4ebf_6255_caf8_59eb024b085c -->|calls| d684c337_83a8_2e6a_ffb4_92e30fe4a4f8
  style d684c337_83a8_2e6a_ffb4_92e30fe4a4f8 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, defined in packages/server-renderer/src/webpack-plugin/util.ts.
Where is stripModuleIdHash() defined?
stripModuleIdHash() is defined in packages/server-renderer/src/webpack-plugin/util.ts at line 60.
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