Fix require of 'export default'

This commit is contained in:
Dmitry Lyzo 2019-12-17 19:02:38 +03:00
parent 2cb4d7be96
commit bc748df41e

View File

@ -17,7 +17,7 @@ _define("fetch", function() {
});
// flvjs
var flvjs = require("flv.js");
var flvjs = require("flv.js").default;
_define("flvjs", function() {
return flvjs;
});
@ -54,7 +54,7 @@ _define("native-promise-only", function() {
});
// resize-observer-polyfill
var resize = require("resize-observer-polyfill");
var resize = require("resize-observer-polyfill").default;
_define("resize-observer-polyfill", function() {
return resize;
});
@ -73,7 +73,7 @@ _define("swiper", function() {
});
// sortable
var sortable = require("sortablejs");
var sortable = require("sortablejs").default;
_define("sortable", function() {
return sortable;
});