Skip to content

Commit

Permalink
perf: give full hook path
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Sep 11, 2023
1 parent a89267e commit 7882ce7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ export class Config implements IConfig {
const marker = Performance.mark(`config.runHook#${p.name}(${hook})`)
try {
/* eslint-disable no-await-in-loop */
const {isESM, module, filePath} = await ModuleLoader.loadWithData(p, hook)

const {isESM, module, filePath} = await ModuleLoader.loadWithData(p, join(p.root, hook))
debug('start', isESM ? '(import)' : '(require)', filePath)

const result = timeout ?
Expand Down

0 comments on commit 7882ce7

Please sign in to comment.