diff options
Diffstat (limited to 'packages/integrations/deno/src/index.ts')
-rw-r--r-- | packages/integrations/deno/src/index.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/integrations/deno/src/index.ts b/packages/integrations/deno/src/index.ts index 6fd19e53e..aa4496e1f 100644 --- a/packages/integrations/deno/src/index.ts +++ b/packages/integrations/deno/src/index.ts @@ -62,17 +62,18 @@ export default function createIntegration(args?: Options): AstroIntegration { allowOverwrite: true, format: 'esm', bundle: true, - external: [ "@astrojs/markdown-remark"] + external: ['@astrojs/markdown-remark'], }); // Remove chunks, if they exist. Since we have bundled via esbuild these chunks are trash. try { - const chunkFileNames = _vite?.build?.rollupOptions?.output?.chunkFileNames ?? 'chunks/chunk.[hash].mjs'; + const chunkFileNames = + _vite?.build?.rollupOptions?.output?.chunkFileNames ?? 'chunks/chunk.[hash].mjs'; const chunkPath = npath.dirname(chunkFileNames); const chunksDirUrl = new URL(chunkPath + '/', _buildConfig.server); await fs.promises.rm(chunksDirUrl, { recursive: true, force: true }); } catch {} - } + }, }, }; } |