Skip to content

Console log when updating file #344

@karstenzip

Description

@karstenzip

Hi,
When updating any file with icon scanning on, it seems to log a (debug?) message

{ path: 'components/Sidebar.vue', matched: true }
ℹ hmr update /components/Sidebar.vue?vue&type=style&index=0&lang.scss

I suspect it is coming from this code block

icon/src/module.ts

Lines 200 to 207 in 8ac3520

if (ctx.scanner) {
const matched = ctx.scanner.isFileMatch(path)
console.log({ path, matched })
ctx.scanner.extractFromCode(
await fs.readFile(resolvedPath, 'utf-8').catch(() => ''),
ctx.scannedIcons,
)
}

that was introduced in this commit
c695667#diff-030fc083b2cbf5cf008cfc0c49bb4f1b8d97ac07f93a291d068d81b4d1416f70R202

Is there any way to disable this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions