Skip to content

Commit

Permalink
fix: transpile unhead even when meta: false is set (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
wattanx authored Aug 9, 2023
1 parent 59db787 commit e1c033e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/bridge/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export async function setupAppBridge (_options: any) {
// Transpile libs with modern syntax
nuxt.options.build.transpile.push('h3', 'iron-webcrypto', 'ohash', 'ofetch')

// Transpile @unhead/vue and @unhead/ssr
nuxt.options.build.transpile.push('unhead')

// Disable legacy fetch polyfills
nuxt.options.fetch.server = false
nuxt.options.fetch.client = false
Expand Down
3 changes: 0 additions & 3 deletions packages/bridge/src/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ export default defineNuxtModule({
setup (options, nuxt) {
const runtimeDir = nuxt.options.alias['#head'] || resolve(distDir, 'head/runtime')

// Transpile @unhead/vue and @unhead/ssr
nuxt.options.build.transpile.push('unhead')

// Add #head alias
nuxt.options.alias['#head'] = runtimeDir

Expand Down

0 comments on commit e1c033e

Please sign in to comment.