Skip to content

vue-cli build lib's Bug #4338

@kazehaiya

Description

@kazehaiya

Version

2.6.0

Reproduction link

https://github.com/kazehaiya/vue-cli-project-demo

Node and OS info

node: v10.15.3、yarn: 1.17.3、System: MacOS 10.14.5

Steps to reproduce

First run 'yarn build'.Then run devEnv and chage the '@lib/vue-cli-project-demo.umd' with '@lib/vue-cli-project-demo.umd.min' in src/main.ts

What is expected?

The component's name of MyButton is "Mybutton"

What is actually happening?

When use minimize js file, the name of MyButton is 'e'


If the Mybutton component doesn't use TS, the result of minimize file run well.

I think that it should be fixed beacause many package use minimize output file.

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