summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-01-02 21:31:51 +0800
committerGravatar GitHub <noreply@github.com> 2023-01-02 21:31:51 +0800
commitc2844a79c8c94466481f5f3a37af259bb4cbf276 (patch)
tree348b74d31dd79320f43d8f88866d5c17947cd72e
parentf4441e2726425ddfbaf16793f917a9d8553ed39a (diff)
downloadastro-c2844a79c8c94466481f5f3a37af259bb4cbf276.tar.gz
astro-c2844a79c8c94466481f5f3a37af259bb4cbf276.tar.zst
astro-c2844a79c8c94466481f5f3a37af259bb4cbf276.zip
Fix docs smoke error (#5706)
Co-authored-by: bholmesdev <hey@bholmes.dev>
-rw-r--r--.changeset/mean-knives-smash.md5
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--package.json2
-rw-r--r--packages/astro/src/core/config/vite-load.ts8
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) })],
});