File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/magento/module-ui/view/base/requirejs-config.js
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
var config = {
deps: [],
shim: {
'chartjs/Chart.min': ['moment'],
'tiny_mce_4/tinymce.min': {
exports: 'tinyMCE'
}
},
paths: {
'ui/template': 'Magento_Ui/templates'
},
map: {
'*': {
uiElement: 'Magento_Ui/js/lib/core/element/element',
uiCollection: 'Magento_Ui/js/lib/core/collection',
uiComponent: 'Magento_Ui/js/lib/core/collection',
uiClass: 'Magento_Ui/js/lib/core/class',
uiEvents: 'Magento_Ui/js/lib/core/events',
uiRegistry: 'Magento_Ui/js/lib/registry/registry',
consoleLogger: 'Magento_Ui/js/lib/logger/console-logger',
uiLayout: 'Magento_Ui/js/core/renderer/layout',
buttonAdapter: 'Magento_Ui/js/form/button-adapter',
chartJs: 'chartjs/Chart.min',
tinymce4: 'tiny_mce_4/tinymce.min',
wysiwygAdapter: 'mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter'
}
}
};
/**
* Adds polyfills only for browser contexts which prevents bundlers from including them.
*/
if (typeof window !== 'undefined' && window.document) {
/**
* Polyfill Map and WeakMap for older browsers that do not support them.
*/
if (typeof Map === 'undefined' || typeof WeakMap === 'undefined') {
config.deps.push('es6-collections');
}
/**
* Polyfill MutationObserver only for the browsers that do not support it.
*/
if (typeof MutationObserver === 'undefined') {
config.deps.push('MutationObserver');
}
/**
* Polyfill FormData object for old browsers that don't have full support for it.
*/
if (typeof FormData === 'undefined' || typeof FormData.prototype.get === 'undefined') {
config.deps.push('FormData');
}
}