Skip to content

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

@silentmantra

Description

@silentmantra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions