Commit 21a99e1
committed
fix(deps-dev): Dynamic import node:events
Avoids the following error when running `pnpm run test`:
```
test browser
ℹ Browser "chromium" setup complete.
✘ [ERROR] Could not resolve "events"
dist/test/utils/create-pubsub.js:1:32:
1 │ import { setMaxListeners } from 'events';
│ ~~~~~~~~
╵ "./events"
The package "events" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```1 parent 60b5dad commit 21a99e1
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
0 commit comments