Skip to content

Commit 6264996

Browse files
committed
test: fix baseUrl normalization
1 parent dc38211 commit 6264996

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@vue/cli-service/lib/Service.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ module.exports = class Service {
248248
}
249249

250250
// normlaize some options
251-
resolved.baseUrl = resolved.baseUrl.replace(/^\.\//, '')
251+
if (typeof resolved.baseUrl === 'string') {
252+
resolved.baseUrl = resolved.baseUrl.replace(/^\.\//, '')
253+
}
252254
ensureSlash(resolved, 'baseUrl')
253255
removeSlash(resolved, 'outputDir')
254256

0 commit comments

Comments
 (0)