File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ declare namespace NodePolyfillPlugin {
11
11
| 'crypto'
12
12
| 'domain'
13
13
| 'events'
14
+ | 'fs'
14
15
| 'http'
15
16
| 'https'
16
17
| 'os'
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const defaultPolyfills = new Set([
27
27
'constants' ,
28
28
'crypto' ,
29
29
'events' ,
30
+ 'fs' ,
30
31
'http' ,
31
32
'https' ,
32
33
'os' ,
@@ -107,6 +108,7 @@ module.exports = class NodePolyfillPlugin {
107
108
crypto : require . resolve ( 'crypto-browserify' ) ,
108
109
domain : require . resolve ( 'domain-browser' ) ,
109
110
events : require . resolve ( 'events/' ) ,
111
+ fs : false ,
110
112
http : require . resolve ( 'stream-http' ) ,
111
113
https : require . resolve ( 'https-browserify' ) ,
112
114
os : require . resolve ( 'os-browserify/browser' ) ,
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ module.exports = {
40
40
};
41
41
```
42
42
43
+ The ` fs ` module resolves to nothing because its functionality cannot replicated in the browser.
44
+
43
45
## API
44
46
45
47
### new NodePolyfillPlugin(options?)
You can’t perform that action at this time.
0 commit comments