nuxt / components

Scan and auto import components for Nuxt.js 2.13+
MIT License
884 stars 48 forks source link

Size after building is bigger with `components: true` #237

Open Henribou opened 2 years ago

Henribou commented 2 years ago

Describe the bug If the option components in nuxt-config.js is set to False, I get the following result after nuxt build image

But if I set the option to True, I get the following :

image

There is a little difference of size in entrypoint, but there are some huge differences in size in the other files. Is that what is expected ?

To Reproduce Steps to reproduce the behavior:

"dependencies": {
    "nuxt": "2.15.8",
    "vue": "2.6.14",
  },
  "devDependencies": {
    ...
    "webpack": "^4.46.0"
  }
  1. Run nuxt build with components: false
  2. Run nuxt build with components: true
  3. Check the differences of size