diff --git a/package.json b/package.json index 16baeb9..7b55f43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jswork/next-is-plain-object", - "version": "1.0.3", + "version": "1.0.4", "description": "A isPlainObject implement.", "homepage": "https://js.work", "author": { diff --git a/src/index.js b/src/index.js index 910d544..e6f0ff6 100644 --- a/src/index.js +++ b/src/index.js @@ -29,7 +29,7 @@ nx.isPlainObject = function (inTarget) { return true; }; -if (typeof module !== 'undefined' && module.exports) { +if (typeof module !== 'undefined' && module.exports && typeof wx === 'undefined') { module.exports = nx.isPlainObject; }