You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-43Lines changed: 44 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
A Vite plugin to polyfill Node's Core Modules for browser environments. Supports [`node:` protocol imports](https://nodejs.org/dist/latest-v16.x/docs/api/esm.html#node-imports).
4
4
5
-
###Why do I need this?
5
+
## Why do I need this?
6
6
7
7
```
8
8
Module "stream" has been externalized for browser compatibility. Cannot access "stream.Readable" in client code.
@@ -56,45 +56,46 @@ export default defineConfig({
56
56
57
57
### All polyfills
58
58
59
-
'assert',
60
-
'buffer',
61
-
'child_process',
62
-
'cluster',
63
-
'console',
64
-
'constants',
65
-
'crypto',
66
-
'dgram',
67
-
'dns',
68
-
'domain',
69
-
'events',
70
-
'fs',
71
-
'http',
72
-
'https',
73
-
'http2',
74
-
'module',
75
-
'net',
76
-
'os',
77
-
'path',
78
-
'punycode',
79
-
'process',
80
-
'querystring',
81
-
'readline',
82
-
'repl',
83
-
'stream',
84
-
'_stream_duplex',
85
-
'_stream_passthrough',
86
-
'_stream_readable',
87
-
'_stream_transform',
88
-
'_stream_writable',
89
-
'string_decoder',
90
-
'sys',
91
-
'timers/promises',
92
-
'timers',
93
-
'tls',
94
-
'tty',
95
-
'url',
96
-
'util',
97
-
'vm',
98
-
'zlib',
99
-
100
-
plus the node:[lib] if protocolImports is true
59
+
- If protocolImports is true, also adds node:[module]
0 commit comments