We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a662bea commit 29f3178Copy full SHA for 29f3178
bin/vue-build
@@ -362,10 +362,10 @@ function merge (obj) {
362
return obj
363
}
364
365
-function replaceExtension (str, ext) {
366
- return str.replace(/\.(vue|js)$/, ext)
+function replaceExtension (entry, ext) {
+ return path.basename(entry).replace(/\.(vue|js)$/, ext)
367
368
369
-function getLibraryName (str) {
370
- return str.replace(/[-_.]([\w])/, (_, p1) => p1.toUpperCase())
+function getLibraryName (fileName) {
+ return fileName.replace(/[-_.]([\w])/, (_, p1) => p1.toUpperCase())
371
0 commit comments