Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 3df3aba

Browse files
committed
fix: prefixSkip incorrect merge with defaults
1 parent dbf15b4 commit 3df3aba

File tree

4 files changed

+1047
-1324
lines changed

4 files changed

+1047
-1324
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,31 @@ Use any [Lodash](https://lodash.com) methods in your Nuxt application, they will
4242

4343
## 🔨 Config
4444

45-
| Name | Default | Description |
46-
| ------------------ | -------- | ------------------------------------------------------------------------------------ |
47-
| `prefix` | `'use'` | String to prepend before each Lodash function (false to disable) |
48-
| `prefixSkip` | `['is']` | Functions that starts with keywords in this array will be skipped by prefix |
49-
| `upperAfterPrefix` | `true` | If true it will automatically uppercase first letter after prefix (false to disable) |
50-
| `exclude` | `[]` | Array of Lodash functions to exclude from auto-imports |
51-
| `alias` | `[]` | Array of array pairs to rename specific Lodash functions (prefix is still added) |
45+
| Name | Default | Description |
46+
| ------------------ | ------- | ------------------------------------------------------------------------------------- |
47+
| `prefix` | `'use'` | String to prepend before each Lodash function (false to disable) |
48+
| `prefixSkip` | `'is'` | Functions that starts with this keywords will be skipped by prefix (false to disable) |
49+
| `upperAfterPrefix` | `true` | If true it will automatically uppercase first letter after prefix (false to disable) |
50+
| `exclude` | `[]` | Array of Lodash functions to exclude from auto-imports |
51+
| `alias` | `[]` | Array of array pairs to rename specific Lodash functions (prefix is still added) |
5252

5353
## 💻 Example - Config
5454

5555
```ts
5656
export default defineNuxtConfig({
57-
modules: ['nuxt-lodash'],
57+
modules: ["nuxt-lodash"],
5858
lodash: {
59-
prefix: '_',
60-
prefixSkip: ['string'],
59+
prefix: "_",
60+
prefixSkip: ["string"],
6161
upperAfterPrefix: false,
62-
exclude: ['map'],
62+
exclude: ["map"],
6363
alias: [
64-
['camelCase', 'stringToCamelCase'], // => stringToCamelCase
65-
['kebabCase', 'stringToKebab'], // => stringToKebab
66-
['isDate', 'isLodashDate'], // => _isLodashDate
64+
["camelCase", "stringToCamelCase"], // => stringToCamelCase
65+
["kebabCase", "stringToKebab"], // => stringToKebab
66+
["isDate", "isLodashDate"], // => _isLodashDate
6767
],
6868
},
69-
})
70-
69+
});
7170
```
7271

7372
## 📄 License

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"semantic-release": "semantic-release"
3838
},
3939
"dependencies": {
40-
"@nuxt/kit": "^3.0.0-rc.12",
40+
"@nuxt/kit": "^3.0.0",
4141
"@types/lodash-es": "^4.17.6",
4242
"lodash-es": "^4.17.21"
4343
},
@@ -47,7 +47,7 @@
4747
"@semantic-release/git": "^10.0.1",
4848
"conventional-changelog-conventionalcommits": "^5.0.0",
4949
"eslint": "latest",
50-
"nuxt": "^3.0.0-rc.12",
50+
"nuxt": "^3.0.0",
5151
"semantic-release": "^19.0.5"
5252
}
5353
}

0 commit comments

Comments
 (0)