mirror of https://github.com/webpack/webpack.git
generate more pretty names for nested concatenation
This commit is contained in:
parent
6607cfa4bd
commit
7619c43d26
|
|
@ -602,7 +602,7 @@ class ConcatenatedModule extends Module {
|
|||
name = "";
|
||||
|
||||
// Remove uncool stuff
|
||||
extraInfo = extraInfo.replace(/\.+\/|(\/index)?\.([a-zA-Z0-9]{1,4})$/g, "");
|
||||
extraInfo = extraInfo.replace(/\.+\/|(\/index)?\.([a-zA-Z0-9]{1,4})($|\s|\?)|\s*\+\s*\d+\s*modules/g, "");
|
||||
|
||||
const splittedInfo = extraInfo.split("/");
|
||||
while(splittedInfo.length) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue