node-dependency-tree icon indicating copy to clipboard operation
node-dependency-tree copied to clipboard

Need help for configuration

Open msev opened this issue 9 months ago • 0 comments

Hi,

First of all, thank you for this library, which allows me to load vendors by entry point on rollUp.

However, I don't understand why Swiper modules are injected into the nonExistent array.

import Swiper from 'swiper';
import { Navigation, Pagination } from 'swiper/modules'; // <-- nonExistent

Here is my very basic configuration:

const list = dependencyTree.toList({
  filename: value,
  directory: options.routes.base,
  nodeModulesConfig: {
    entry: 'module'
  },
  nonExistent
});

Swiper's first import is in the list, but the modules are in the nonExistent array.

I must be missing something in the configuration.

Thanks for your help

msev avatar Mar 11 '25 09:03 msev