Skip to content

Commit

Permalink
fix: Inlined implicit external defu
Browse files Browse the repository at this point in the history
  • Loading branch information
ijkml committed Apr 12, 2024
1 parent 25a766b commit 1182999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "nu-ma-playground",
"type": "module",
"private": true,
"scripts": {
"dev": "nuxi dev",
"build": "nuxi build",
Expand Down
3 changes: 1 addition & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
createResolver,
defineNuxtModule,
} from '@nuxt/kit';
import { defu } from 'defu';
import type { ModuleOptions } from './types';

export default defineNuxtModule<ModuleOptions>({
Expand All @@ -17,7 +16,7 @@ export default defineNuxtModule<ModuleOptions>({
const resolver = createResolver(import.meta.url);

if (!nuxt.options.appConfig.umamiLayer)
nuxt.options.appConfig.umConfig = defu(options);
nuxt.options.appConfig.umConfig = options;

addPlugin(resolver.resolve('./runtime/plugin'));
const fns = ['umTrackEvent', 'umTrackView'];
Expand Down

0 comments on commit 1182999

Please sign in to comment.