Closed
Description
Version
3.0.0-beta.6
Reproduction link
https://jsfiddle.net/50wL7mdz/184064/
Steps to reproduce
Create 2 vue projects.
Project A (vue create vue-cli-ts):
- Go custom then -> Select everything including TS
- yarn build / npm build
- Whatch the resulting build info
Project B (vue create vuecli-no-ts) :
- Go custom then -> Select everything except TS
- yarn build / npm build
- Watch the resulting build info
What is expected?
Builds shouldn't be extremely different in size. (There will always be a margin -> TS transpilation to JS)
What is actually happening?
There is more than 30% size increase for TS based vendor bundle.
There is more than 10% size increase for TS based app bundle
Project A (vue-cli-ts)
File Size Gzipped
dist/js/vendor.9e0a13bd.js 128.90 kb 43.41 kb
dist/js/app.a6133549.js 15.08 kb 8.88 kb
dist/service-worker.js 0.95 kb 0.54 kb
dist/precache-manifest.8c3336142c1938a 0.44 kb 0.22 kb
1dcd7c0151a065fd3.js
dist/css/app.dee3710a.css 0.42 kb 0.26 kb
Project B (vuecli-no-ts)
File Size Gzipped
dist/js/vendor.1bc00b6a.js 96.04 kb 32.72 kb
dist/js/app.9d221347.js 13.60 kb 8.37 kb
dist/service-worker.js 0.95 kb 0.54 kb
dist/precache-manifest.1ab260dc03549dc 0.44 kb 0.22 kb
6a5b3a24943ce681a.js
dist/css/app.cb8f9cda.css 0.42 kb 0.26 kb
Notes:
- It would be interesting to test this with a larger project (which I don't have)
- It might just be a transpilation behavior and there is verry little to do about it
- It might be a config issue
Leaving this issue here to be get more info and test later on.
Metadata
Metadata
Assignees
Labels
No labels