Skip to content

Commit 069cedf

Browse files
committed
Add note about why this plugin exists
1 parent 07bbc9a commit 069cedf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ export default defineConfig({
3131
})
3232
```
3333

34+
## Why?
35+
36+
The following error can occur when a package references a native Node module without providing a polyfill. See [this Vite issue](https://github.com/vitejs/vite/issues/9200) for more info.
37+
38+
```
39+
Module "stream" has been externalized for browser compatibility. Cannot access "stream.Readable" in client code.
40+
```
41+
3442
## Attribution
3543

3644
Special thanks to [@FbN](https://github.com/FbN) for putting together [this gist](https://gist.github.com/FbN/0e651105937c8000f10fefdf9ec9af3d).

0 commit comments

Comments
 (0)