From f335819655b5869c86a1bbf473e790b8a455d03e Mon Sep 17 00:00:00 2001 From: David Mellen Date: Wed, 13 Mar 2024 10:56:54 +0100 Subject: [PATCH] refactor: remove unnecessary options merging --- package-lock.json | 3 +-- package.json | 3 +-- src/module.ts | 8 +------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 43473d0..ce427e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,7 @@ "version": "0.0.0-development", "license": "BSD-3-Clause", "dependencies": { - "@nuxt/kit": "^3.10.1", - "defu": "^6.1.3" + "@nuxt/kit": "^3.10.1" }, "devDependencies": { "@nuxt/module-builder": "^0.5.5", diff --git a/package.json b/package.json index 2256681..708c364 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/module.ts b/src/module.ts index d3829b1..6df11ed 100644 --- a/src/module.ts +++ b/src/module.ts @@ -7,7 +7,6 @@ import { defineNuxtModule, } from '@nuxt/kit' import { name, version } from '../package.json' -import { defu } from 'defu' export const CONFIG_KEY = 'typo3Solr' @@ -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({