filename is always a string

This commit is contained in:
Tobias Koppers 2018-10-30 10:41:40 +01:00
parent 8d741fbb0e
commit 197e98a845
2 changed files with 0 additions and 6 deletions

View File

@ -122,7 +122,6 @@ class JavascriptModulesPlugin {
filenameTemplate,
pathOptions: {
chunk,
filename: { ext: ".js" },
contentHashType: "javascript"
},
identifier: `chunk${chunk.id}`,
@ -177,7 +176,6 @@ class JavascriptModulesPlugin {
filenameTemplate,
pathOptions: {
chunk,
filename: { ext: ".js" },
contentHashType: "javascript"
},
identifier: `chunk${chunk.id}`,

View File

@ -102,10 +102,6 @@ const replacePathVariables = (path, data) => {
file.base = basename(file.path);
file.name = file.base.replace(file.ext, "");
}
if (typeof data.filename === "object") {
file = data.filename;
}
}
// Chunk Context