Skip to content

vue-cli-service build target wc not honoring name for registering custom element #1146

@ChristianMurphy

Description

@ChristianMurphy

Version

3.0.0-beta.6

Reproduction link

https://github.com/ChristianMurphy/reproduce-vue-issue

Steps to reproduce

vue create example-component
# select default
cd example-component
npm run build -- --target wc --name example-component

What is expected?

Registered custom element name should match --name option

window.customElements.define('example-component', vue_wc_wrapper(external__Vue__default.a, src_App))

What is actually happening?

Registered custom element name is app

window.customElements.define('app', vue_wc_wrapper(external__Vue__default.a, src_App))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions