Skip to content

Commit f9e5b3c

Browse files
committed
chore(debug): fix debug message ; only display if enabled
1 parent c8c800f commit f9e5b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export function useComponentMetaParser (
171171

172172
components[component.pascalName] = component
173173
} catch (e) {
174-
!debug && logger.info(`Could not parse ${component?.pascalName || component?.filePath || 'a component'}!`)
174+
debug && logger.info(`Could not parse ${component?.pascalName || component?.filePath || 'a component'}!`)
175175
}
176176
const endTime = performance.now()
177177
if (debug === 2) { logger.success(`${component?.pascalName || component?.filePath || 'a component'} metas parsed in ${(endTime - startTime).toFixed(2)}ms`) }

0 commit comments

Comments
 (0)