在节点模块中搜索包含 with 语句的 javascript 文件?

Ole*_*Ole 1 bash ubuntu sed node.js visual-studio-code

我有一个导入很多依赖项的模块,反过来又导入很多依赖项,等等。

当我尝试在 Angular 中使用此模块时,它抱怨某些代码包含已弃用的 if 语句:

:Uncaught SyntaxError: Strict mode code may not include a with statement
Run Code Online (Sandbox Code Playgroud)

有没有办法搜索 VSCode 中的所有节点模块或使用 Linux 命令行实用程序(如sedorfind或 )查找其中包含 with 语句的所有文件。语法如下:

with (object)
    statement
Run Code Online (Sandbox Code Playgroud)

Asa*_*viv 5

进入并输入并VSCode从模式中删除并取消选中User settingssearch.exc**/node_modulesSearch: Use Ignore Files