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

@@ -4,15 +4,12 @@
* This is a special kind of block, as it can contain content blocks, as well
* as other containers.
*/
define([
'backbone',
'backbone.marionette',
'underscore',
'jquery',
'newsletter_editor/App',
'newsletter_editor/blocks/base'
], function (Backbone, Marionette, _, jQuery, App, BaseBlock) {
'use strict';
import Backbone from 'backbone';
import Marionette from 'backbone.marionette';
import _ from 'underscore';
import jQuery from 'jquery';
import App from 'newsletter_editor/App';
import BaseBlock from 'newsletter_editor/blocks/base';
var Module = {};
var base = BaseBlock;
@@ -445,5 +442,4 @@ define([
});
});
return Module;
});
export default Module;