profile
viewpoint

Ask questionsSource files are not ignored with `sourcemapIgnoreList` setting configured

Describe the bug

Refer to the reproduction step, expect the stack frame from the node_modules to be hidden but still see them. cc: @bmeurer

Reproduction

https://github.com/jecfish/sv-counter

Steps to reproduce

  1. Open the code demo locally or with Stackblitz: https://github.com/jecfish/sv-counter
  2. Open Chrome DevTools console
  3. On the page, click on the "count" button.
  4. Observe the log.
  5. Expect the stack frame from the node_modules to be hidden but still see them. [NOT OK]

Screenshot 2023-03-28 at 15 03 49

System Info

System:
    OS: macOS 13.2.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 10.51 GB / 64.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 18.15.0 - ~/.volta/tools/image/node/18.15.0/bin/node
    npm: 9.5.0 - ~/.volta/tools/image/node/18.15.0/bin/npm
  Browsers:
    Chrome: 111.0.5563.110
    Chrome Canary: 114.0.5680.0
    Firefox: 111.0.1
    Firefox Developer Edition: 112.0
    Safari: 16.3
    Safari Technology Preview: 16.4
  npmPackages:
    vite: ^4.2.1 => 4.2.1

Used Package Manager

npm

Logs

No response

Validations

vitejs/vite

Answer questions bmeurer

My understanding of this is limited, but I think @danielroe explained to me that Vite is doing some optimized deps, and it looks like for that step we don't apply the predicate?

useful!

Related questions

No questions were found.
source:https://uonfu.com/
answerer
Benedikt Meurer bmeurer @Google Munich benediktmeurer.de @ChromeDevTools Engineering Lead Previously @v8 and @nodejs.
Github User Rank List