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

Commit

Permalink
fix(nuxt): fix server-placeholder filePath
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-julien committed Sep 13, 2022
1 parent b2e9bc2 commit 966d6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt/src/components/scan.ts
Expand Up @@ -5,7 +5,7 @@ import type { Component, ComponentsDir } from '@nuxt/schema'
import { isIgnored } from '@nuxt/kit'
import { hyphenate } from '@vue/shared'
import { withTrailingSlash } from 'ufo'
import { pkgDir } from '../dirs'
import { distDir } from '../dirs'

/**
* Scan the components inside different components folders
Expand Down Expand Up @@ -137,7 +137,7 @@ export async function scanComponents (dirs: ComponentsDir[], srcDir: string): Pr
components.push({
...component,
mode: 'server',
filePath: resolve(pkgDir, 'src/app/components/server-placeholder.ts'),
filePath: resolve(distDir, 'app/components/server-placeholder'),
chunkName: 'components/' + component.kebabName
})
}
Expand Down

0 comments on commit 966d6ab

Please sign in to comment.