vuejs / repl

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

SFC Playground: Import map is reset on page reload / opening from a link #252

Closed silentmantra closed 3 months ago

silentmantra commented 6 months ago

Vue version

3.4

Link to minimal reproduction

https://play.vuejs.org/#eNp9UsFOwzAM/ZUolw6paw9wKl0lQDvAARDbMZfSeW1Hm0SJuw1N/XeclJaB0G6O33v2s50Tv9M62nfAE57awtQamQXsdCZk3WplkJ1YoVpdNxCyivVsa1TLAlIEQgpZKGnRE9hi5M2C1EVKgkSW1HYhOIJFwbM0noAsuLod5Q4l+eyKLTJWzYJNvQ9CFqyXq7VnpfHgjDzRA6HVTY5AL8Z8J5a4CjEl0vgM5SFHSx22dRntrJI04slpBP82al401uRA8IR5xGF506jDk8+h6SAc80UFxcc/+Z09upzgrwYsmD0IPmGYmxJocAcvV89wpHgCW7XpGmJfAN/AqqZzHgfafSc3ZPuM590++kPVslzb5RFB2nEoZ9Qxe88XnK72cGH0H7vX0Y3XCdnTFoePMG9z/WePA/C7CPUYzFaI2iZxTOf4dD9sZyNlypiiCGw7fzfqQPuiioJPvfovAQvZIQ==

Steps to reproduce

Change the import map to:

{
  "imports": {
    "vue": "https://play.vuejs.org/vue.esm-browser.js",
    "vue/server-renderer": "https://play.vuejs.org/server-renderer.esm-browser.js"
  },
  "scopes": {}
}

Reload the page.

What is expected?

The import should be persistent.

What is actually happening?

The import map is reset back to vue.runtime.esm-browser.js.

System Info

No response

Any additional comments?

No response