mirror of https://github.com/webpack/webpack.git
filename is always a string
This commit is contained in:
parent
8d741fbb0e
commit
197e98a845
|
|
@ -122,7 +122,6 @@ class JavascriptModulesPlugin {
|
||||||
filenameTemplate,
|
filenameTemplate,
|
||||||
pathOptions: {
|
pathOptions: {
|
||||||
chunk,
|
chunk,
|
||||||
filename: { ext: ".js" },
|
|
||||||
contentHashType: "javascript"
|
contentHashType: "javascript"
|
||||||
},
|
},
|
||||||
identifier: `chunk${chunk.id}`,
|
identifier: `chunk${chunk.id}`,
|
||||||
|
|
@ -177,7 +176,6 @@ class JavascriptModulesPlugin {
|
||||||
filenameTemplate,
|
filenameTemplate,
|
||||||
pathOptions: {
|
pathOptions: {
|
||||||
chunk,
|
chunk,
|
||||||
filename: { ext: ".js" },
|
|
||||||
contentHashType: "javascript"
|
contentHashType: "javascript"
|
||||||
},
|
},
|
||||||
identifier: `chunk${chunk.id}`,
|
identifier: `chunk${chunk.id}`,
|
||||||
|
|
|
||||||
|
|
@ -102,10 +102,6 @@ const replacePathVariables = (path, data) => {
|
||||||
file.base = basename(file.path);
|
file.base = basename(file.path);
|
||||||
file.name = file.base.replace(file.ext, "");
|
file.name = file.base.replace(file.ext, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof data.filename === "object") {
|
|
||||||
file = data.filename;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chunk Context
|
// Chunk Context
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue