Skip to content

Commit 7a1f3aa

Browse files
committed
fix: use ssr.noExternal to prevent CSS import error on SSR
1 parent 88179f3 commit 7a1f3aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/react/with-responsive-image/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export default defineConfig({
88
server: {
99
port: 3000,
1010
},
11+
ssr: {
12+
noExternal: '@responsive-image/react',
13+
},
1114
plugins: [
1215
tsConfigPaths({
1316
projects: ['./tsconfig.json'],

0 commit comments

Comments
 (0)