Skip to content

Commit 67fe7cb

Browse files
authored
Fix bp blog (#358)
1 parent 0399314 commit 67fe7cb

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

packages/astro-theme/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ export default function ThemeIntegration(
145145
trailingSlash: "never",
146146
vite: {
147147
ssr: {
148-
noExternal: ["@leaningtech/global-navbar"],
148+
noExternal: [
149+
"@leaningtech/global-navbar",
150+
"@leaningtech/svelte-browserpod-editor",
151+
"svelte-codemirror-editor",
152+
"@iconify/svelte",
153+
],
149154
},
150155
},
151156
});

sites/labs/astro.config.mjs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,5 @@ export default defineConfig({
3333
target: "es2022",
3434
},
3535
},
36-
ssr: {
37-
noExternal: [
38-
"@leaningtech/svelte-browserpod-editor",
39-
"svelte-codemirror-editor",
40-
"@iconify/svelte",
41-
],
42-
},
4336
},
4437
});

sites/labs/svelte.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ import { vitePreprocess } from "@astrojs/svelte";
22

33
export default {
44
preprocess: vitePreprocess({ script: true }),
5+
compilerOptions: {
6+
css: "injected",
7+
},
58
};

0 commit comments

Comments
 (0)