Skip to content

Commit

Permalink
refactor: remove unnecessary options merging
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmlln committed Mar 13, 2024
1 parent ed95ab2 commit f335819
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
"typecheck": "nuxi typecheck"
},
"dependencies": {
"@nuxt/kit": "^3.10.1",
"defu": "^6.1.3"
"@nuxt/kit": "^3.10.1"
},
"peerDependencies": {
"@remindgmbh/nuxt-typo3": "^4.0.0 || ^4.0.0-develop"
Expand Down
8 changes: 1 addition & 7 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
defineNuxtModule,
} from '@nuxt/kit'
import { name, version } from '../package.json'
import { defu } from 'defu'

export const CONFIG_KEY = 'typo3Solr'

Expand All @@ -17,14 +16,9 @@ export default defineNuxtModule({
name,
version,
},
setup(options, nuxt) {
setup(_options, nuxt) {
const resolver = createResolver(import.meta.url)

nuxt.options.runtimeConfig.public[CONFIG_KEY] = defu(
nuxt.options.runtimeConfig.public[CONFIG_KEY],
options,
)

nuxt.options.alias['#nuxt-typo3-solr'] = resolver.resolve('runtime')

addPlugin({
Expand Down

0 comments on commit f335819

Please sign in to comment.