This commit is contained in:
Luk 2024-02-23 13:26:32 +08:00
parent 424e363b60
commit def0d19e66

View File

@ -1,6 +1,10 @@
const fs = require('fs')
const path = require('path')
const deepmerge = require('deepmerge')
// https://github.com/jonschlinkert/assign-deep // 类似 Object.assign 直接赋值到第一个对象里。只下载2个包。assign 优选。
// https://github.com/jonschlinkert/merge-deep // 生成一个新对象。会下载78个包。
// 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: {} }