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,14 +1,11 @@
'use strict';
/**
* Text content block
*/
define([
'newsletter_editor/App',
'newsletter_editor/blocks/base',
'underscore',
'mailpoet'
], function textBlock(App, BaseBlock, _, MailPoet) {
import App from 'newsletter_editor/App';
import BaseBlock from 'newsletter_editor/blocks/base';
import _ from 'underscore';
import MailPoet from 'mailpoet';
var Module = {};
var base = BaseBlock;
@@ -108,5 +105,4 @@ define([
});
return Module;
});
export default Module;