Add empty mock for module (#5798)

This commit is contained in:
Dotan Simha
2019-01-16 04:26:24 -05:00
committed by Brody McKee
parent fd382772a1
commit 34e5029c54

View File

@@ -644,6 +644,7 @@ module.exports = function(webpackEnv) {
// Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works.
node: {
module: 'empty',
dgram: 'empty',
fs: 'empty',
net: 'empty',