Duplicated packages in vendor.js with laravel mix

85 Views Asked by At

I have a local npm package, that contains other local npm packages

enter image description here

All of these packages are very similar, all uses vue, jquery, etc.

When i compile:

mix.js('index.js','dist/app.js').vue().extract();

The bundler analyzer shows in the vendor.js that every package contains its own node_modules and contains many packages duplicated.

How can avoid this?

enter image description here

0

There are 0 best solutions below