Skip to content

Magento 2: Use of map in RequireJs-config

Is anyone know the use of this ‘custom’ & when we need to use that?

var config = {
     map: {
         **'custom':** {
                 '@@@': '@@@',
                 '@@@': 'js/@@@'
             }
         }
 };

Thanks.