Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The filename field should be compatible? #52

Open
luckFine opened this issue Mar 16, 2023 · 0 comments
Open

The filename field should be compatible? #52

luckFine opened this issue Mar 16, 2023 · 0 comments

Comments

@luckFine
Copy link

luckFine commented Mar 16, 2023

in the 'index.js' file
in the function shouldInstrument

if (
      this.extension &&
      !this.extension.some(ext => filename.endsWith(ext))
  ) {
      return false;
  }

sometimes filename is undefined then report error

image

Can it be changed to !this.extension.some(ext => filename && filename.endsWith(ext))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant