Skip to content

modern mode doesn't work with typescript #1577

@troy351

Description

@troy351

Version

3.0.0-rc.1

Reproduction link

no need

Steps to reproduce

create vue project with the steps below

  1. vue create demo
  2. Manually select features
  3. Babel && TypeScript
  4. N
  5. Y
  6. In dedicated config files
  7. N

After finish, run vue-cli-service build --modern.

What is expected?

bundles should be different

What is actually happening?

check dist/app.hash.js and dist/app-legacy.hash.js, they are identical except the source map comment part.


In pure js project, the modern bundle using arrow function for render function while the legacy bundle using function declaration.
In ts project, both bundles using function declaration.

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