Error: Can't resolve 'fs' webpack

JavaScript
node: {
  fs: 'empty'
}

Source

Also in JavaScript: