<p dir="auto"><a href="https://github.com/yangdan8/module-federation-bug">https://github.com/yangdan8/module-federation-bug</a></p>
<p dir="auto">step:<br>
pnpm i<br>
pnpm dev</p>
<p dir="auto">result:<br>
There is "node_modules_pnpm_vue_2_7_14_node_modules_vue_dist_vue_runtime_esm_js" in "consumer/dist" directory,<br>
but it is in "libs/dist" directory too!!!</p>
<p dir="auto">windows 11<br>
node 16<br>
webpack 5.75.0<br>
tool vscode</p>
<p dir="auto">When requiring shim for using process in browser, chunk hash variants on different machines.<br>
In the module "lib/NodeSourcePlugin", "getPathToModule" method will return an absolute path of node shim. This will cause different results depending on the path where your project exits on different machines. And when webpack injects variable dependencies such as 'require(/path/to/node_modules/process/browser.js)', the expression used to initialize DependenciesBlockVariable is changed, Which makes the hash of chunk changed too !<br>
Is this a bug ? Or feature ? It is so disturbing that same code but gets different hash.</p>