Commit 282ee63
authored
Vite 6 compatibility
In order to resolve the error:
```
[commonjs--resolver] Failed to resolve entry for package "@ethercorps/sveltekit-redis-session". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." spec
ifier in "@ethercorps/sveltekit-redis-session" package
```
"import" and "require" tell bundlers like Vite or Node how to resolve imports for both ESM and CJS.
"default" covers environments expecting that fallback.1 parent d134b04 commit 282ee63
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
0 commit comments