Commit b57ade1
authored
fix(nuxt): Added top-level fallback exports (#18083)
It seems that in some cases where an `environment` in Vite is set to
something other than `node` or `browser`, it won't be able to figure out
the correct import paths.
This PR ensures that when Vite (or other tools) can't determine the
environment from "browser" or "node" conditions alone, then it falls
back to the server bundle similar to what we do in Next.js.
In the issue's case it was set to `nuxt` or rather
`vitest-environment-nuxt` which doesn't seem like a pattern to account
for.
closes #180701 parent 3deeecd commit b57ade1
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
0 commit comments