Skip to content

Commit edf1f60

Browse files
committed
fixup!
1 parent b3a6c71 commit edf1f60

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

‎src/generators/web/bundlers/vite.mjs‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { pathToFileURL } from 'node:url';
55

66
import {
77
build as viteBuild,
8-
defaultClientConditions,
9-
defaultServerConditions,
108
mergeConfig,
119
} from 'vite';
1210

@@ -161,7 +159,6 @@ export const createViteConfig = ({
161159
vite = {},
162160
}) => {
163161
const root = resolve(vite.root ?? process.cwd());
164-
const conditions = server ? defaultServerConditions : defaultClientConditions;
165162

166163
return {
167164
...vite,
@@ -189,7 +186,6 @@ export const createViteConfig = ({
189186
{ resolve: vite.resolve },
190187
{
191188
resolve: {
192-
conditions: ['rolldown', ...conditions],
193189
dedupe: ['preact'],
194190

195191
// Vite applies string aliases to matching package subpaths too.
@@ -231,7 +227,6 @@ export const createViteConfig = ({
231227
watch: null,
232228
lib: false,
233229

234-
...(server ? { manifest: false } : {}),
235230
ssr: server,
236231

237232
// Browser output follows the generator's minification setting. Temporary
@@ -261,14 +256,6 @@ export const createViteConfig = ({
261256
...vite.ssr,
262257
external: [],
263258
noExternal: true,
264-
resolve: {
265-
...vite.ssr?.resolve,
266-
conditions: [
267-
'rolldown',
268-
...defaultServerConditions,
269-
...(vite.ssr?.resolve?.conditions ?? []),
270-
],
271-
},
272259
},
273260
}
274261
: {}),

0 commit comments

Comments
 (0)