diff --git a/client/nuxt.config.ts b/client/nuxt.config.ts index 611d22a..a97fa4a 100644 --- a/client/nuxt.config.ts +++ b/client/nuxt.config.ts @@ -1,3 +1,4 @@ +import { resolve } from 'pathe' import { defineNuxtConfig } from 'nuxt/config' import vueEmailModule from '../src/module' @@ -8,9 +9,9 @@ export default defineNuxtConfig({ app: { baseURL: process.env.NODE_ENV === 'development' ? undefined : '/__vue_email__/client', }, - vite: { - build: { - target: 'esnext', + nitro: { + output: { + publicDir: resolve(__dirname, '../dist/client'), }, }, ui: { diff --git a/package.json b/package.json index 8001750..6706ff1 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@vue-email/compiler": "npm:@vue-email/compiler-edge@0.8.0-beta.8-28373343.9455813", "defu": "^6.1.3", "sirv": "^2.0.3", - "vue-email": "npm:vue-email-edge@0.8.0-beta.12-28373434.36e5786" + "vue-email": "npm:vue-email-edge@0.8.0-beta.12-28373522.80083f0" }, "devDependencies": { "@nuxt/devtools": "latest", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7187253..2ae7868 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ importers: specifier: ^2.0.3 version: 2.0.3 vue-email: - specifier: npm:vue-email-edge@0.8.0-beta.12-28373434.36e5786 - version: /vue-email-edge@0.8.0-beta.12-28373434.36e5786(vue@3.3.11) + specifier: npm:vue-email-edge@0.8.0-beta.12-28373522.80083f0 + version: /vue-email-edge@0.8.0-beta.12-28373522.80083f0(vue@3.3.11) devDependencies: '@nuxt/devtools': specifier: latest @@ -9233,17 +9233,13 @@ packages: - utf-8-validate dev: false - /vue-email-edge@0.8.0-beta.12-28373434.36e5786(vue@3.3.11): - resolution: {integrity: sha512-Pb4n27kGj9SCZhl94MxR11IM5d9wBTUCCwte1YH1haiutuFDtkfptlksefxSAtfahP0Gc4xlFBPMPXtBxR3jtg==} + /vue-email-edge@0.8.0-beta.12-28373522.80083f0(vue@3.3.11): + resolution: {integrity: sha512-yHMU35+GCtN+ctYpOnnwvOvowIKq+koesoAJeYF7oVfTE6vENdIbZPWCBMKW9/zILs+9jm3ODccHmVzcM1PYwg==} peerDependencies: vue: '>=3.0.0' dependencies: '@flowko/tw-to-css': 0.0.6 - dom-serializer: 2.0.0 - html-to-text: 9.0.5 - htmlparser2: 9.0.0 isomorphic-dompurify: 1.12.0 - pretty: 2.0.0 ufo: 1.3.2 vue: 3.3.11(typescript@5.3.3) vue-i18n: 9.8.0(vue@3.3.11) diff --git a/src/module.ts b/src/module.ts index 9786a3b..b93defa 100644 --- a/src/module.ts +++ b/src/module.ts @@ -48,7 +48,7 @@ export default defineNuxtModule({ }, async setup (options, nuxt) { const { resolve } = createResolver(import.meta.url) - const playgroundDir = resolve('../client/dist') + const playgroundDir = resolve('../dist/client') nuxt.options.runtimeConfig.public.vueEmail = defu(nuxt.options.runtimeConfig.public.vueEmail, options)