-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
Version
3.0.0-rc.1
Reproduction link
no need
Steps to reproduce
create vue project with the steps below
- vue create demo
- Manually select features
- Babel && TypeScript
- N
- Y
- In dedicated config files
- 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.
r0skar, jyrkidn, romansp, C-Higgins, huww98 and 7 more