Skip to content

vue-doctor/bundle-size/no-full-lodash-import ​

Import the specific function: import debounce from 'lodash/debounce' — saves ~70kb

PropertyValue
CategoryBundle Size
Default Severitywarning
Confidencehigh
FixableNo
Engineoxlint
Sincev1.0.0
Frameworksvue, nuxt
Test filesNot checked (which files)

Why it matters ​

Import the specific function: import debounce from 'lodash/debounce' — saves ~70kb

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

Import the single function (import debounce from 'lodash/debounce') or switch to lodash-es/native code instead of importing the full library.


Rule source: vue-doctor/bundle-size/no-full-lodash-import

Released under the MIT License.