mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
+2
-2
@@ -323,7 +323,7 @@ kit.config = kit.config || {};
|
||||
return function (){
|
||||
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)) {
|
||||
self.config.debug && console.warn(`Plugin ${self.id}: Скрипт ${src} уже загружен!`);
|
||||
return;
|
||||
@@ -435,7 +435,7 @@ kit.config = kit.config || {};
|
||||
|
||||
var installer = function(){
|
||||
|
||||
var __exports = undefined;
|
||||
var __exports = self.module.exports;
|
||||
if(self.config.type === 'ES' && typeof self.config.module === 'string' && self.config.module !== '') {
|
||||
__exports = (typeof self.module.exports === 'object' && self.module.exports.default !== undefined)
|
||||
?self.module.exports.default
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user