Quantcast
Channel: What is the right way to use lodash-es in Angular Universal? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by fr.ancis.co for What is the right way to use lodash-es in Angular Universal?

$
0
0

The solution is to whitelist lodash-es, as David suggested in the comments to the original question. To be specific, now webpack.server.config.js looks like this:

...  externals: [    nodeExternals({      whitelist: [/^lodash-es/]    })  ],...

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>