Because we need extensions to not conflict with each other., (*1)
// Your/Module/view/frontend/requirejs-config.js var config = { "config": { "mixins": { "Briteskies_ExtendableShippingSaveProcessor/extender": { "Your_Module/extender": true } } } }
// Your/Module/view/frontend/web/extender.js define(['mage/utils/wrapper'], function (wrapper) { 'use strict'; return function (processor) { return wrapper.wrap(processor, function (proceed, payload) { payload = proceed(payload); payload.extension_attributes.yourAttribute = 'value'; return payload; }); }; });
Easier installation across our multiple implementations., (*2)
Yes, Yes I did. Go vote on it?, (*3)