I\'m trying to migrate my Angular Universal project from Angular v5 to v6
I\'ve got a service where I use fs to load the translation on the server side.
In Angular 8, you can now use Angular Builders to specify a web.config.js which extends the virtual config produced by Angular.
This blogpost explains it quite well.
tldr:
npm i -D @angular-builders/custom-webpackangular.json file architect.serve and architect.build to tell it to use the custom-webpack module to extend the virtual config with your webpack.config.js filewebpack.config.js - in this case it would look like this:module.exports = {
node: {
fs: 'empty'
}
};