Clean imports and remove unused
This commit is contained in:
parent
5414117a3a
commit
3867c24b41
3 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
|||
<template>
|
||||
<main>
|
||||
<h1>Nuxt Application</h1>
|
||||
<button @click="trackClick">Track Click</button>
|
||||
<button @click="trackClick">
|
||||
Track Click
|
||||
</button>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -41,6 +41,8 @@ export default defineNuxtModule<ModuleOptions>({
|
|||
nuxt.options.build.transpile.push(runtimeDir);
|
||||
const resolver = createResolver(import.meta.url);
|
||||
|
||||
logger.info('Adding Wide Angle Analytics runtime plugin');
|
||||
|
||||
addImports({
|
||||
name: "useWaaEvent",
|
||||
as: "useWaaEvent",
|
||||
|
|
|
@ -2,7 +2,7 @@ import { defineNuxtPlugin, useRuntimeConfig } from '#imports';
|
|||
import { ref } from 'vue';
|
||||
import { initWideAngle } from 'wideangle-vuejs';
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
export default defineNuxtPlugin(() => {
|
||||
if(process.server) {
|
||||
console.warn("[WAA] Plugin will not be enabled on server side.");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue