diff --git a/package.json b/package.json index 14ac4d5..901d014 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "scripts": { "start": "dumi dev", "docs:build": "dumi build", - "build": "father-build" + "build": "father-build", + "postinstall": "patch-package" }, "main": "dist/index.js", "module": "dist/index.esm.js", @@ -36,11 +37,12 @@ ] }, "dependencies": { + "@ant-design/icons": "^5.1.4", "@iceworks/spec": "^1.4.2", "@monaco-editor/loader": "^1.3.3", "gloden-console-render": "0.0.2", "lodash": "^4.17.21", - "@ant-design/icons": "^5.1.4", + "patch-package": "^8.0.0", "react-dom": "17.0.2" }, "peerDependencies": { diff --git a/patches/lodash+4.17.21.patch b/patches/lodash+4.17.21.patch new file mode 100644 index 0000000..3ef0a7e --- /dev/null +++ b/patches/lodash+4.17.21.patch @@ -0,0 +1,12 @@ +diff --git a/node_modules/lodash/isEmpty.js b/node_modules/lodash/isEmpty.js +index 3597294..99c3882 100644 +--- a/node_modules/lodash/isEmpty.js ++++ b/node_modules/lodash/isEmpty.js +@@ -51,6 +51,7 @@ var hasOwnProperty = objectProto.hasOwnProperty; + * // => false + */ + function isEmpty(value) { ++ console.log('isEmpty -->',value) + if (value == null) { + return true; + }