Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 740b009

Browse files
committed
Address code review feedback
1 parent 44d2004 commit 740b009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/create_manifest_data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function create_manifest_data(cwd: string, extensions: string = '
1515

1616
function has_preload(file: string) {
1717
const source = fs.readFileSync(path.join(cwd, file), 'utf-8');
18-
return /export\s+(async\s+)?function\s+preload/.test(source);
18+
return /export\s+.*?preload/.test(source);
1919
}
2020

2121
function find_layout(file_name: string, component_name: string, dir: string = '') {

0 commit comments

Comments
 (0)