我有一个导入大量依赖项的模块,这些依赖项又导入大量依赖项等。
当我尝试在 Angular 中使用此模块时,它提示某些代码包含已弃用的 if 语句:
:Uncaught SyntaxError: Strict mode code may not include a with statement
有没有办法搜索 VSCode 中的所有 Node 模块或使用 linux 命令行实用程序,如
sed
或 find
或查找所有带有 with 语句的文件。语法如下所示:with (object)
statement
最佳答案
在 VSCode
进入 User settings
并输入 search.exc
并删除 **/node_modules
从模式中取消选中 Search: Use Ignore Files
关于node.js - 在 Node 模块中搜索包含 with 语句的 javascript 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57563564/