fix(nitro): don't externalize @nuxt, virtual: and #

This commit is contained in:
Pooya Parsa 2021-04-23 23:28:06 +02:00
parent a806e8ca01
commit 5e0abbcb1b

View File

@ -222,7 +222,10 @@ export const getRollupConfig = (nitroContext: NitroContext) => {
nitroContext._nuxt.rootDir,
nitroContext._nuxt.buildDir,
'vue',
'@vue/'
'@vue/',
'@nuxt/',
'#',
'virtual:'
]) || []),
nitroContext._nuxt.serverDir,
...nitroContext.middleware.map(m => m.handle)