Commit 2cece06
committed
fix: move webidl-conversions polyfill to config file top
Apply ArrayBuffer/SharedArrayBuffer polyfills at the very top of the
vite.config.test.ts file, before any imports. This ensures the polyfills
are applied before webidl-conversions is loaded by any dependencies.
The previous globalSetup approach didn't work in CI because globalSetup
runs in a separate context after modules are already loaded. Moving the
polyfill to the config file ensures it runs early enough to prevent
'Cannot read properties of undefined (reading get)' errors in Node 18.1 parent c9ed2cc commit 2cece06
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
1 | 27 | | |
2 | 28 | | |
3 | 29 | | |
| |||
0 commit comments