u
This commit is contained in:
		
							parent
							
								
									424e363b60
								
							
						
					
					
						commit
						def0d19e66
					
				@ -1,6 +1,10 @@
 | 
				
			|||||||
const fs = require('fs')
 | 
					const fs = require('fs')
 | 
				
			||||||
const path = require('path')
 | 
					const path = require('path')
 | 
				
			||||||
const deepmerge = require('deepmerge')
 | 
					const deepmerge = require('deepmerge')
 | 
				
			||||||
 | 
					// https://github.com/jonschlinkert/assign-deep // 类似 Object.assign 直接赋值到第一个对象里。只下载2个包。assign 优选。
 | 
				
			||||||
 | 
					// https://github.com/jonschlinkert/merge-deep // 生成一个新对象。会下载7~8个包。
 | 
				
			||||||
 | 
					// https://github.com/TehShrike/deepmerge // 生成一个新对象。只下载1个包。
 | 
				
			||||||
 | 
					// const deepmerge = require('@fastify/deepmerge')() // https://github.com/fastify/deepmerge // // 生成一个新对象。只下载1个包。assign优选。页面上有性能测试比较,超快。(他还有个 https://github.com/fastify/fast-json-stringify 也超快)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const my = { envar: {} }
 | 
					const my = { envar: {} }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user