This commit is contained in:
2024-12-08 15:52:10 +03:00
parent 589ac5cf0f
commit 74cd10de8a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -323,7 +323,7 @@ kit.config = kit.config || {};
return function (){ return function (){
return self.getScriptPromise(src); return self.getScriptPromise(src);
}; };
} else if(typeof config.module === 'string' && config.module !== '' && config.type === 'default') { } else if(typeof config.module === 'string' && config.module !== '' && config.type === 'default') {
if (isAssetLoaded(src)) { if (isAssetLoaded(src)) {
self.config.debug && console.warn(`Plugin ${self.id}: Скрипт ${src} уже загружен!`); self.config.debug && console.warn(`Plugin ${self.id}: Скрипт ${src} уже загружен!`);
return; return;
@@ -435,7 +435,7 @@ kit.config = kit.config || {};
var installer = function(){ var installer = function(){
var __exports = undefined; var __exports = self.module.exports;
if(self.config.type === 'ES' && typeof self.config.module === 'string' && self.config.module !== '') { if(self.config.type === 'ES' && typeof self.config.module === 'string' && self.config.module !== '') {
__exports = (typeof self.module.exports === 'object' && self.module.exports.default !== undefined) __exports = (typeof self.module.exports === 'object' && self.module.exports.default !== undefined)
?self.module.exports.default ?self.module.exports.default
+1 -1
View File
File diff suppressed because one or more lines are too long