Skip to content

Commit 1bd2250

Browse files
Copilothi-ogawa
andcommitted
docs: improve subpath imports example with better variable name and consistent defaults
Co-authored-by: hi-ogawa <[email protected]>
1 parent 707ba3b commit 1bd2250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/common-errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ If you need to conditionally set conditions based on the runtime environment:
110110
```ts [vitest.config.js]
111111
import { defineConfig } from 'vitest/config'
112112

113-
const isBun = 'bun' in process.versions
113+
const isRunningOnBun = 'bun' in process.versions
114114

115115
export default defineConfig({
116116
ssr: {
117117
resolve: {
118-
conditions: isBun ? ['bun', 'import'] : ['import'],
118+
conditions: isRunningOnBun ? ['bun', 'import', 'default'] : ['import', 'default'],
119119
},
120120
},
121121
})

0 commit comments

Comments
 (0)