Skip to content

Commit

Permalink
lazy getOutDirs()
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Feb 20, 2025
1 parent e666e05 commit fae9e43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vike/node/plugin/plugins/buildConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ let serverManifest: ViteManifest

function buildConfig(): Plugin[] {
let isServerAssetsFixEnabled: boolean
let outDirs: OutDirs
let config: ResolvedConfig
return [
{
Expand All @@ -67,7 +66,6 @@ function buildConfig(): Plugin[] {
assert(Object.keys(entries).length > 0)
config.build.rollupOptions.input = injectRollupInputs(entries, config)
addLogHook()
outDirs = getOutDirs(config)
{
isServerAssetsFixEnabled = fixServerAssets_isEnabled() && (await isV1Design(config))
if (isServerAssetsFixEnabled) {
Expand Down Expand Up @@ -114,6 +112,7 @@ function buildConfig(): Plugin[] {
writeBundle: {
sequential: true,
async handler(options, bundle) {
const outDirs = getOutDirs(config)
if (!viteIsSSR(config)) {
clientManifest = await readManifestFile(outDirs, 'client')
} else {
Expand Down

0 comments on commit fae9e43

Please sign in to comment.