perf: improve getTemplate() when cache is enabled

Checking for file existence is unnecessary when cache contains entry.
This commit is contained in:
Patrick Malouin
2019-06-17 11:01:02 +08:00
committed by Jun Yang
parent bbebb5515c
commit 1ffba2bc76
4 changed files with 42 additions and 1 deletions
+2
View File
@@ -1,11 +1,13 @@
import output from './output'
import tag from './tag'
import demo from './demo'
import layout from './layout'
async function main () {
await output()
await tag()
await demo()
await layout()
}
main()