Convert AMD and CommonJS odules to ES6

[MAILPOET-1829]
This commit is contained in:
Jan Jakeš
2019-02-19 16:59:35 +01:00
committed by M. Shull
parent 5a0d905bd4
commit afcde00003
69 changed files with 310 additions and 581 deletions

View File

@@ -1,12 +1,10 @@
define([], function mailpoet() {
// A placeholder for MailPoet object
var MailPoet = {};
// Expose MailPoet globally
window.MailPoet = MailPoet;
return MailPoet;
});
export default MailPoet;
require('ajax'); // side effect - extends MailPoet object
require('i18n'); // side effect - extends MailPoet object