Mike S.
Mike S.

Reputation: 2828

Framework Ignore List pattern for node_modules folder

Within chrome debugger, during a React Native debugging session, I can ignore individual files by right-clicking in the Source file editor and selecting Add script to ignore list. Not an optimal solution.

I know that I can exclude folders using a pattern in the Framework Ignore List (Settings > Ignore List). Not being regex-savvy, I looked for an existing example without success. Can someone provide a tested example of how to ignore all libraries not related to the project source code, specifically the /node_modules folder?

Upvotes: 5

Views: 1735

Answers (1)

Thijs
Thijs

Reputation: 748

A simple solution would be to ignore every file which contains /node_modules/ in its path. You can do this with the pattern .*\/node_modules\/.*.

Upvotes: 6

Related Questions