i have a custom module with frontend custom js located in app/code/Namespace/Module/view/frontend/web/js/preorder.js
that i need to include it in catalogsearch frontend, for now my requirejs-config.js look like this:
var config = {
config: {
mixins: {
'Magento_Swatches/js/swatch-renderer': {
'Namespace_Module/js/swatch-renderer-mixin': true
}
}
},
map: {
'*': {
preorder: 'Namespace_Module/js/preorder',,
catalogAddToCart: "Namespace_Module/js/catalog-add-to-cart",
"Magento_Catalog/js/catalog-add-to-cart": "Namespace_Module/js/catalog-add-to-cart"
}
}
};
i need to add that preorder in catalogsearch frontend, how can i add it to catalog search layout?