run-as-root / Magento-2-Dependency-Checker

A small CLI tool to check missing dependency declarations in the composer.json and module.xml
31 stars 2 forks source link

Detect dependency in JavaScript components #3

Open VladyslavSikailo opened 2 years ago

VladyslavSikailo commented 2 years ago

In case we use a JavaScript component in Module1 from Module2 - Module1 should require Module2

Example:

define([
    'Magento_Module2/js/action',
], function (action) {
    'use strict';

}

So this module should require Module1