Skip to content

Commit

Permalink
fix(ssr): remove trailing hash in webpack module identifier when
Browse files Browse the repository at this point in the history
generating client manifest
  • Loading branch information
yyx990803 authored and aJean committed Aug 19, 2020
1 parent e7fc5d6 commit 8e54341
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/webpack-plugin/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default class VueSSRClientPlugin {
if (!chunk || !chunk.files) {
return
}
const files = manifest.modules[hash(m.identifier)] = chunk.files.map(fileToIndex)
const id = m.identifier.replace(/\s\w+$/, '') // remove appended hash
const files = manifest.modules[hash(id)] = chunk.files.map(fileToIndex)
// find all asset modules associated with the same chunk
assetModules.forEach(m => {
if (m.chunks.some(id => id === cid)) {
Expand Down

0 comments on commit 8e54341

Please sign in to comment.