Skip to content

Commit

Permalink
[plugin-webpack] Use default name behavior. (#1215)
Browse files Browse the repository at this point in the history
Co-authored-by: Marko Heikkilä <[email protected]>
  • Loading branch information
heikkilamarko and Marko Heikkilä authored Oct 5, 2020
1 parent 2c68260 commit d4b21d3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions plugins/plugin-webpack/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ function getSplitChunksConfig({numEntries}) {
test(module) {
return module.size() > 150000 && /node_modules[/\\]/.test(module.identifier());
},
name(module) {
const hash = crypto.createHash(`sha1`);
hash.update(module.libIdent({context: 'dir'}));
return 'lib-' + hash.digest(`hex`).substring(0, 8);
},
priority: 30,
minChunks: 1,
reuseExistingChunk: true,
Expand Down

0 comments on commit d4b21d3

Please sign in to comment.