layout.js 498 B

1234567891011121314151617181920212223
  1. /**
  2. * Copyright © Magento, Inc. All rights reserved.
  3. * See COPYING.txt for license details.
  4. */
  5. /**
  6. * @deprecated since version 2.2.0
  7. */
  8. /* eslint-disable strict */
  9. define(['underscore'], function (_) {
  10. return {
  11. /**
  12. * @param {Object} config
  13. */
  14. build: function (config) {
  15. var types = _.map(_.flatten(config), function (item) {
  16. return item.type;
  17. });
  18. require(types, function () {});
  19. }
  20. };
  21. });