UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

1 lines 570 B
{"version":3,"file":"merge-config.mjs","names":[],"sources":["../../../src/libs/config/merge-config.ts"],"sourcesContent":["import type { Config, LucidConfig } from \"../../types/config.js\";\nimport deepMerge from \"../../utils/helpers/deep-merge.js\";\n\nconst mergeConfig = (\n\tconfig: LucidConfig,\n\tdefaultConfig: Partial<LucidConfig>,\n) => {\n\tconst clonedDefaults = structuredClone(defaultConfig);\n\treturn deepMerge(clonedDefaults, config) as Config;\n};\n\nexport default mergeConfig;\n"],"mappings":"kDAGA,MAAM,GACL,EACA,IAGO,EADgB,gBAAgB,CACT,EAAG,CAAM"}