diff options
-rw-r--r-- | .changeset/mean-knives-smash.md | 5 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 2 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | packages/astro/src/core/config/vite-load.ts | 8 |
4 files changed, 15 insertions, 2 deletions
diff --git a/.changeset/mean-knives-smash.md b/.changeset/mean-knives-smash.md new file mode 100644 index 000000000..4c4c4d85e --- /dev/null +++ b/.changeset/mean-knives-smash.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Add preact and sitemap integration to config load external list diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e85ce63ba..096fc1c62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -218,3 +218,5 @@ jobs: - name: Test run: pnpm run test:smoke + env: + NODE_OPTIONS: "--max-old-space-size=4096" diff --git a/package.json b/package.json index fa438bd77..03e71b8c9 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "format:imports": "organize-imports-cli ./packages/*/tsconfig.json ./packages/*/*/tsconfig.json", "test": "turbo run test --output-logs=new-only --concurrency=1 --filter=astro --filter=create-astro --filter=\"@astrojs/*\"", "test:match": "cd packages/astro && pnpm run test:match", - "test:smoke": "turbo run build --filter=\"@example/*\" --filter=\"astro.build\" --filter=\"docs\" --output-logs=new-only --concurrency=1", + "test:smoke": "turbo run build --filter=\"@example/*\" --filter=\"docs\" --output-logs=new-only --concurrency=1", "test:check-examples": "node ./scripts/smoke/check.js", "test:vite-ci": "turbo run test --filter=astro --output-logs=new-only --no-deps --concurrency=1", "test:e2e": "cd packages/astro && pnpm playwright install && pnpm run test:e2e", diff --git a/packages/astro/src/core/config/vite-load.ts b/packages/astro/src/core/config/vite-load.ts index 97ae63079..b512d7fab 100644 --- a/packages/astro/src/core/config/vite-load.ts +++ b/packages/astro/src/core/config/vite-load.ts @@ -26,7 +26,13 @@ async function createViteLoader(root: string, fs: typeof fsType): Promise<ViteLo // NOTE: Vite doesn't externalize linked packages by default. During testing locally, // these dependencies trip up Vite's dev SSR transform. In the future, we should // avoid `vite.createServer` and use `loadConfigFromFile` instead. - external: ['@astrojs/tailwind', '@astrojs/mdx', '@astrojs/react'], + external: [ + '@astrojs/tailwind', + '@astrojs/mdx', + '@astrojs/react', + '@astrojs/preact', + '@astrojs/sitemap', + ], }, plugins: [loadFallbackPlugin({ fs, root: pathToFileURL(root) })], }); |