mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-24 05:50:21 -05:00
fix: do not generate empty file when use ts without router (#4374)
(cherry picked from commit 52bae8e14a)
This commit is contained in:
committed by
Haoqun Jiang
parent
bb2e3e7217
commit
7c19dd61e2
@@ -412,7 +412,7 @@ function renderFile (name, data, ejsOptions) {
|
||||
// if evaluated to falsy value, return early to avoid extra cost for extend expression
|
||||
const result = ejs.render(finalTemplate, data, ejsOptions)
|
||||
if (!result) {
|
||||
return
|
||||
return ''
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user