c12
c12 copied to clipboard
⚙️ Smart Configuration Loader
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^20.11.27` -> `^20.11.30`](https://renovatebot.com/diffs/npm/@types%2fnode/20.11.27/20.11.30) |...
### 🔗 Linked issue https://github.com/unjs/nitro/issues/2270 ### ❓ Type of change Provides a new option called `provideFallbackValues` that replaces `null` or `undefined` with an empty string to not be stripped off...
### 🔗 Linked issue #138 ### ❓ Type of change - [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [ ] 🐞 Bug fix (a...
### Environment Tested with node `v18.8.2` on Windows and node `20.11.1` in macOS and node `v18.8.0` in StackBlitz @pi0 sorry for the tag, but we very much need this fix...
(this is a primary draft to explain the idea) Related: #138, #87 Sometime default `defu` merging strategy is not ideal. We could allow a custom defu merger but it is...
### Environment Node: v20.10.0 "nuxt": "^3.9.0", "vue": "^3.4.3", "vue-router": "^4.2.5" ### Reproduction Method1: 1. https://github.com/Callan003/test-nuxt-layers 2. run pnpm install - it will get stuck 3. remove pnpm-workspace.yaml 4. run pnpm...
### Describe the feature It would be really nice to add an option like `create: true` to write whatever the default is to the config file/directory. I can definitely make...
As a followup to `.config/` dir supports https://github.com/unjs/c12/pull/136 for [config-dir proposal](https://github.com/pi0/config-dir). When configuration file size increases (and there is no way to keep it minimal!!), users might prefer to split...
When the default export is an array we need to support resolving multi configs (might be a new export `loadConfig`)
### Environment - node: v18.18.0 - c12: v1.5.1 ### Reproduction https://stackblitz.com/edit/stackblitz-starters-13rkzj?file=index.js ### Describe the bug The use of `defu` to merge sources in https://github.com/unjs/c12/blob/54ed82b4f23cc89151e4a4cdf32a74e939b574e8/src/loader.ts#L112-L119 makes it such that a default...