diff options
author | 2021-04-10 13:00:50 -0700 | |
---|---|---|
committer | 2021-04-10 13:00:50 -0700 | |
commit | d3f8efbf6e4dd5582559e6be0b09a351ae728fcf (patch) | |
tree | 1be9abd2e3d5676d5d67941da123d93d9f16a787 /src | |
parent | 1712f9edb663104ea4f5b9817b535a159655708a (diff) | |
download | astro-d3f8efbf6e4dd5582559e6be0b09a351ae728fcf.tar.gz astro-d3f8efbf6e4dd5582559e6be0b09a351ae728fcf.tar.zst astro-d3f8efbf6e4dd5582559e6be0b09a351ae728fcf.zip |
cleanup landing page, and small fix
Diffstat (limited to 'src')
-rw-r--r-- | src/build.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build.ts b/src/build.ts index f746ceb26..37ef560d6 100644 --- a/src/build.ts +++ b/src/build.ts @@ -106,7 +106,9 @@ export async function build(astroConfig: AstroConfig): Promise<0 | 1> { mergeSet(imports, await collectDynamicImports(new URL(`file://${pathname}`), collectImportsOptions)); } - await bundle(imports, { dist, runtime, astroConfig }); + if (imports.size > 0) { + await bundle(imports, { dist, runtime, astroConfig }); + } for (let url of statics) { const outPath = new URL('.' + url, dist); |