我在我的应用程序中使用 ngrx-store-localstorage 我收到了这个警告:
警告: /用户/Me/angular-ngrx-material-standalone-starter/node_modules/ngrx-store-localstorage/fesm2022/ngrx-store-localstorage.mjs 取决于“深度合并”。 CommonJS 或 AMD 依赖性可能会导致 优化救助。欲了解更多信息,请参阅: https://angular.io/guide/build#configuring-commonjs-dependency
我尝试在我的 angular.json 中添加 ngrx-store-localstorage 喜欢:
{
"builder": "@angular-devkit/build-angular:browser",
"options": {
"allowedCommonJsDependencies": ["ngrx-store-localstorage"],
}
}
正如文档所述,但警告仍然存在。
你能帮我吗? 谢谢
将
deepmerge
添加到 allowedCommonJsDependencies
以消除警告。