diff --git a/packages/addon-dev/src/rollup-hbs-plugin.ts b/packages/addon-dev/src/rollup-hbs-plugin.ts index 2baf865e0e..6fc0ff85f2 100644 --- a/packages/addon-dev/src/rollup-hbs-plugin.ts +++ b/packages/addon-dev/src/rollup-hbs-plugin.ts @@ -60,8 +60,10 @@ async function isTemplateOnly(hbsPath: string) { let jsPath = hbsPath.replace(/\.hbs$/, '.js'); let tsPath = hbsPath.replace(/\.hbs$/, '.ts'); - let hasJs = await pathExists(jsPath); - let hasTs = await pathExists(tsPath); + let [hasJs, hasTs] = await Promise.all([ + pathExists(jsPath), + pathExists(tsPath), + ]); let hasClass = hasJs || hasTs;