revert back document-register-element

This commit is contained in:
grafixeyehero 2019-11-27 22:07:33 +03:00
parent e3c21d56d5
commit be886982a2
3 changed files with 9 additions and 3 deletions

View File

@ -4,6 +4,12 @@
// Use define from require.js not webpack's define
var _define = window.define;
// document-register-element
var docRegister = require("document-register-element");
_define("document-register-element", function() {
return docRegister;
});
// fetch
var fetch = require("whatwg-fetch");
_define("fetch", function() {

View File

@ -412,7 +412,7 @@ var AppInfo = {};
} else if (browser.msie) {
define("registerElement", [bowerPath + "/webcomponents-lite.min.js"], returnFirstDependency);
} else {
define("registerElement", [bowerPath + "/document-register-element"], returnFirstDependency);
define("registerElement", ["document-register-element"], returnFirstDependency);
}
define("imageFetcher", [componentsPath + "/images/imageFetcher"], returnFirstDependency);
@ -681,6 +681,7 @@ var AppInfo = {};
},
bundles: {
bundle: [
"document-register-element",
"fetch",
"flvjs",
"jstree",

View File

@ -6,8 +6,7 @@ const CopyPlugin = require("copy-webpack-plugin");
const Assets = [
"alameda/alameda.js",
"requirejs/require.js",
"webcomponents.js-2/webcomponents-lite.min.js",
"document-register-element/build/document-register-element.js"
"webcomponents.js-2/webcomponents-lite.min.js"
];
module.exports = {