Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
chore: added vue-email to transpile
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowko committed Dec 12, 2023
1 parent 57b5c16 commit e4a721c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export default defineNuxtModule<ModuleOptions>({

nuxt.options.runtimeConfig.public.vueEmail = defu(nuxt.options.runtimeConfig.public.vueEmail, options)

// if (!nuxt.options.build.transpile) nuxt.options.build.transpile = []
// const transpileList = ['vue-email']
// transpileList.forEach((pkgName) => {
// if (!nuxt.options.build.transpile.includes(pkgName)) nuxt.options.build.transpile.push(pkgName)
// })
if (!nuxt.options.build.transpile) nuxt.options.build.transpile = []
const transpileList = ['defu','vue-email']
transpileList.forEach((pkgName) => {
if (!nuxt.options.build.transpile.includes(pkgName)) nuxt.options.build.transpile.push(pkgName)
})

nuxt.hook('nitro:config', (nitroConfig) => {
nitroConfig.alias = nitroConfig.alias || {}
Expand Down

0 comments on commit e4a721c

Please sign in to comment.