Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use vue esm bundler while running SSR #221

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

linzhe141
Copy link

fixbug#9445

When repl performs ssr in the online environment, import { useModel as _useModel } from 'vue' will use the *runtime.esm-browser.js file, but in the dev environment it will The *rutime-dom.esm-bundler.js file is used, so there is no problem with the dev environment

image
image
image


The processing of these two file formats for SSR is different. So ssr bug will appear in the online environment.

image

Copy link

vercel bot commented Feb 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
repl ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 22, 2024 0:14am

@linzhe141
Copy link
Author

linzhe141 commented Feb 21, 2024

Before

before demo

image

After

after demo

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant