Lets say we have an Third Party Module in Magento 2 that has in frontend from requirejs-config.js the following code:
var config = {
map: {
'*': {
amShopbyFilterAbstract: 'Amasty_Shopby/js/amShopby',
amShopbyFilterItemDefault: 'Amasty_Shopby/js/amShopby',
amShopbyFilterDropdown: 'Amasty_Shopby/js/amShopby',
amShopbyFilterSlider: 'Amasty_Shopby/js/amShopby',
amShopbyFilterFromTo: 'Amasty_Shopby/js/amShopby',
amShopbyAjax: 'Amasty_Shopby/js/amShopbyAjax',
amShopbyFilterSearch: 'Amasty_Shopby/js/amShopby',
amShopbyFilterHideMoreOptions: 'Amasty_Shopby/js/amShopby',
amShopbyFilterAddTooltip: 'Amasty_Shopby/js/amShopby',
amShopbySwatchesChoose: 'Amasty_Shopby/js/amShopbySwatchesChoose',
amShopbyFilterMultiselect: 'Amasty_Shopby/js/amShopby',
amShopbyFilterSwatch: 'Amasty_Shopby/js/amShopby',
amShopbyFiltersSync: 'Amasty_Shopby/js/amShopbyFiltersSync',
amShopbyApplyFilters: 'Amasty_Shopby/js/amShopbyApplyFilters',
amShopbyTopFilters: 'Amasty_Shopby/js/amShopbyTopFilters',
amShopbyFilterCategoryDropdown: 'Amasty_Shopby/js/amShopby',
amShopbyFilterCategoryLabelsFolding: 'Amasty_Shopby/js/amShopby',
amShopbyFilterContainer: 'Amasty_Shopby/js/amShopby'
}
},
deps: [
'Amasty_Shopby/js/amShopbyResponsive'
]
};
And I want to use my own code in order to overwrite the js from 'Amasty_Shopby/js/amShopby' so it loads my own code instead of the extension code in order for me to make changes into it.