kopia lustrzana https://github.com/wagtail/wagtail
Add best practice node modules aliasing
rodzic
8a0238768d
commit
3bf4e10902
|
@ -61,5 +61,12 @@ module.exports = function exports() {
|
|||
// Add webpack version information
|
||||
version: false,
|
||||
},
|
||||
// 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: {
|
||||
fs: 'empty',
|
||||
net: 'empty',
|
||||
tls: 'empty',
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue