Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: remove unused import
  • Loading branch information
danielroe committed Sep 5, 2022
commit 106213923c38d8d075df0680e8e80f2b7a8eeedf
4 changes: 1 addition & 3 deletions packages/nuxt/src/core/runtime/nitro/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ const getServerEntry = () => import('#build/dist/server/server.mjs').then(r => r
// @ts-ignore
const getSSRStyles = (): Promise<Record<string, () => Promise<string[]>>> => import('#build/dist/server/styles.mjs').then(r => r.default || r)

const JS_HINT_RE = /<[^>]+(\.m?js"|as="script")[^>]*>/g

// -- SSR Renderer --
const getSSRRenderer = lazyCachedFunction(async () => {
// Load client manifest
Expand Down Expand Up @@ -192,7 +190,7 @@ export default defineRenderHandler(async (event) => {
return response
})

function lazyCachedFunction<T> (fn: () => Promise<T>): () => Promise<T> {
function lazyCachedFunction <T> (fn: () => Promise<T>): () => Promise<T> {
let res: Promise<T> | null = null
return () => {
if (res === null) {
Expand Down