Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 22, 2022
1 parent b23831d commit 9126402
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nuxt/src/core/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { resolve, join } from 'pathe'
import { createNitro, createDevServer, build, prepare, copyPublicAssets, writeTypes, scanHandlers, prerender } from 'nitropack'
import type { NitroEventHandler, NitroDevEventHandler, NitroConfig } from 'nitropack'
import type { Nuxt } from '@nuxt/schema'
import { resolvePath } from '@nuxt/kit'
import defu from 'defu'
import fsExtra from 'fs-extra'
import { toEventHandler, dynamicEventHandler } from 'h3'
import { resolvePath } from 'mlly'
import { distDir } from '../dirs'
import { ImportProtectionPlugin } from './plugins/import-protection'

Expand Down Expand Up @@ -64,8 +64,8 @@ export async function initNitro (nuxt: Nuxt) {
},
alias: {
// TODO: #590
'vue/server-renderer': await resolvePath('vue/server-renderer'),
'vue/compiler-sfc': await resolvePath('vue/compiler-sfc'),
'vue/server-renderer': await resolvePath('vue/server-renderer', { conditions: ['import'] }),
'vue/compiler-sfc': await resolvePath('vue/compiler-sfc', { conditions: ['import'] }),
vue: await resolvePath(`vue/dist/vue.cjs${nuxt.options.dev ? '' : '.prod'}.js`),

// Vue 3 mocks
Expand Down

0 comments on commit 9126402

Please sign in to comment.