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

options.excludes does not seem to be working. #73

Open
DrMiaow opened this issue Aug 21, 2018 · 5 comments
Open

options.excludes does not seem to be working. #73

DrMiaow opened this issue Aug 21, 2018 · 5 comments

Comments

@DrMiaow
Copy link

DrMiaow commented Aug 21, 2018

image

image

@pocesar
Copy link
Owner

pocesar commented Aug 22, 2018

does it make any difference if you start the excludes like **/webpack/bootstrap/* ? bootstrap is a folder I assume

@DrMiaow
Copy link
Author

DrMiaow commented Aug 27, 2018

Tried it, it makes no difference.

@pocesar
Copy link
Owner

pocesar commented Aug 27, 2018

some things to try:

  • set the options.root to your srcs folder
  • use options.includes instead of options.excludes

I'm guessing webpack is a "virtual" module that doesn't actually exist as a file (since there's no extension in there), but exists as a module inside the code, either as a non static import, or lazy loaded

@DrMiaow
Copy link
Author

DrMiaow commented Aug 28, 2018

options.includes seems to work (excluding the files) but then it breaks remap-istanbul which is unable to find the source-map.

I'm transpiling into ./dist , which is also where the sourcemap file is located.

A solution I have found is to use a feature in remap-istanbul which has an option filter out files from the remapping and final report.

exclude: /webpack\/(bootstrap|universalModuleDefinition)/,

@artbindu
Copy link

artbindu commented Dec 9, 2022

Try to use the file extension name under excludes Istanbul Options.
It will work.

As example:

 excludes: [
    '*.test.ts', '*.test.js'
 ],

or

 excludes: [
    '*.test.*'
 ],

I tried to use the directory path then it's not working. But it should work.
I also used the istanbuljs/nyc and see their directory path is working.

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

3 participants