vuejs / repl

Vue SFC REPL as a Vue 3 component
https://repl-vuejs.vercel.app
MIT License
923 stars 170 forks source link

fix: use vue esm bundler while running SSR #221

Closed linzhe141 closed 3 days ago

linzhe141 commented 8 months ago

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

vercel[bot] commented 8 months ago

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 commented 7 months ago

Before

before demo

image

After

after demo

image