Skip to content

Commit

Permalink
Build dist files with hasModule fix
Browse files Browse the repository at this point in the history
  • Loading branch information
urbnjamesmi1 committed Oct 16, 2020
1 parent 93967bc commit dd5f21d
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/logger.js
Expand Up @@ -6,7 +6,7 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.Vuex = factory());
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Vuex = factory());
}(this, (function () { 'use strict';

/**
Expand Down
6 changes: 5 additions & 1 deletion dist/vuex.common.js
Expand Up @@ -288,7 +288,11 @@ ModuleCollection.prototype.isRegistered = function isRegistered (path) {
var parent = this.get(path.slice(0, -1));
var key = path[path.length - 1];

return parent.hasChild(key)
if (parent) {
return parent.hasChild(key)
}

return false
};

function update (path, targetModule, newModule) {
Expand Down
6 changes: 5 additions & 1 deletion dist/vuex.esm.browser.js
Expand Up @@ -278,7 +278,11 @@ class ModuleCollection {
const parent = this.get(path.slice(0, -1));
const key = path[path.length - 1];

return parent.hasChild(key)
if (parent) {
return parent.hasChild(key)
}

return false
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/vuex.esm.browser.min.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion dist/vuex.esm.js
Expand Up @@ -286,7 +286,11 @@ ModuleCollection.prototype.isRegistered = function isRegistered (path) {
var parent = this.get(path.slice(0, -1));
var key = path[path.length - 1];

return parent.hasChild(key)
if (parent) {
return parent.hasChild(key)
}

return false
};

function update (path, targetModule, newModule) {
Expand Down
8 changes: 6 additions & 2 deletions dist/vuex.js
Expand Up @@ -6,7 +6,7 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.Vuex = factory());
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Vuex = factory());
}(this, (function () { 'use strict';

function applyMixin (Vue) {
Expand Down Expand Up @@ -292,7 +292,11 @@
var parent = this.get(path.slice(0, -1));
var key = path[path.length - 1];

return parent.hasChild(key)
if (parent) {
return parent.hasChild(key)
}

return false
};

function update (path, targetModule, newModule) {
Expand Down
2 changes: 1 addition & 1 deletion dist/vuex.min.js

Large diffs are not rendered by default.

0 comments on commit dd5f21d

Please sign in to comment.