You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And only the dist/esm folder is included in the build output's node_modules, perhaps because Vinxi ignored the production conditional, and moved files over according to the "import" export? And then some other logic in vinxi (or vite/nitro) did correctly pick up the production conditional when re-writing the final package.json exports? Resulting in a mismatch.
The text was updated successfully, but these errors were encountered:
I believe this will affect any projects with dependencies that make use of the production conditional in their package.json exports.
I've updated one of the vinxi examples here to surface the bug: marbemac@4ff57bc
pnpm i
cd examples/react/ssr/basic
pnpm build
pnpm start
- see errorIn this example I've added the
@zedux/react
package, which uses the production conditional in their package.json exports.Here is what the original package.json looks like:
And here is what it looks like in the build
.output
folder's node_modules:And only the
dist/esm
folder is included in the build output's node_modules, perhaps because Vinxi ignored the production conditional, and moved files over according to the "import" export? And then some other logic in vinxi (or vite/nitro) did correctly pick up the production conditional when re-writing the final package.json exports? Resulting in a mismatch.The text was updated successfully, but these errors were encountered: