mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore: lint (#7213)
This commit is contained in:
parent
6c93269e73
commit
1fc34e6c06
@ -6,7 +6,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
if (logs.length > 0) {
|
||||
const ssrLogStyle = 'background: #003C3C;border-radius: 0.5em;color: white;font-weight: bold;padding: 2px 0.5em;'
|
||||
console.groupCollapsed && console.groupCollapsed('%cNuxt Server Logs', ssrLogStyle)
|
||||
logs.forEach((logObj:any) => (console[logObj.type as 'log'] || console.log)(...logObj.args))
|
||||
logs.forEach((logObj: any) => (console[logObj.type as 'log'] || console.log)(...logObj.args))
|
||||
delete nuxtApp.payload.logs
|
||||
console.groupEnd && console.groupEnd()
|
||||
}
|
||||
|
@ -19,5 +19,5 @@ export function createIsExternal (viteServer: ViteDevServer, rootDir: string) {
|
||||
}
|
||||
}
|
||||
|
||||
return (id:string) => isExternal(id, rootDir, externalOpts)
|
||||
return (id: string) => isExternal(id, rootDir, externalOpts)
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ export default class VueSSRServerPlugin {
|
||||
return cb()
|
||||
}
|
||||
|
||||
const entryAssets = entryInfo.assets!.filter((asset: { name:string }) => isJS(asset.name))
|
||||
const entryAssets = entryInfo.assets!.filter((asset: { name: string }) => isJS(asset.name))
|
||||
|
||||
if (entryAssets.length > 1) {
|
||||
throw new Error(
|
||||
|
Loading…
Reference in New Issue
Block a user