Skip to content

Commit

Permalink
fix: fix vite config build undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ygj6 committed Jun 30, 2021
1 parent 667853b commit 3d54ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate/geneViteConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function geneViteConfig (rootDir: string, outDir: string, config: C
}
// fill entry
if (config.entry === undefined) {
config.entry = transformer.context.config.build.rollupOptions.input
config.entry = transformer.context.config.build?.rollupOptions?.input
}

render(outDir, template, data)
Expand Down

0 comments on commit 3d54ccd

Please sign in to comment.