vue-email / nuxt

💚 Official Nuxt module for Vue Email. Build email templates with Vue components.
https://vuemail.net/getting-started/nuxt-nitro
MIT License
110 stars 3 forks source link

useCompiler return type missing ? #43

Closed lewebsimple closed 5 months ago

lewebsimple commented 7 months ago

It seems useCompiler returns Promise<any> when used like so:

import { useCompiler } from "#vue-email";

export default defineEventHandler(async () => {
  const template = await useCompiler("TestEmail.vue");
  return template.html;
});

Am I missing something ?

Flowko commented 5 months ago

we just merged a new project rewrite, please do check the docs and the updated logic https://vuemail.net/