We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b477a4c commit d5f03baCopy full SHA for d5f03ba
webpack/webpack.config.js
@@ -80,8 +80,12 @@ const config = (options: {}): {} => {
80
__USE_CSS_MODULES__: JSON.stringify(JSON.parse(process.env.USE_CSS_MODULES || 'true'))
81
})
82
],
83
+ // Some libraries import Node modules but don't use them in the browser.
84
+ // Tell Webpack to provide empty mocks for them so importing them works.
85
node: {
- fs: 'empty'
86
+ fs: 'empty',
87
+ net: 'empty',
88
+ tls: 'empty'
89
},
90
module: {
91
rules: getRules(computedOptions)
0 commit comments