From 912640239d8548d54d2a5aba5a8f3d71f66a3571 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 22 Apr 2022 16:58:53 +0800 Subject: [PATCH] chore: update --- packages/nuxt/src/core/nitro.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/core/nitro.ts b/packages/nuxt/src/core/nitro.ts index e75b92d57a7..8f5817ecad6 100644 --- a/packages/nuxt/src/core/nitro.ts +++ b/packages/nuxt/src/core/nitro.ts @@ -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' @@ -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