MCPcopy
hub / github.com/webpack/webpack / getModuleIdentifier

Method getModuleIdentifier

lib/RecordIdsPlugin.js:76–81  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

74 * @returns {string} the (portable) identifier
75 */
76 const getModuleIdentifier = (module) => {
77 if (portableIds) {
78 return makePathsRelative(module.identifier());
79 }
80 return module.identifier();
81 };
82
83 compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
84 compilation.hooks.recordModules.tap(PLUGIN_NAME, (modules, records) => {

Callers

nothing calls this directly

Calls 1

identifierMethod · 0.45

Tested by

no test coverage detected