Skip to content

Commit 675d686

Browse files
authored
add extra externalConditions to resolve config (#2003)
1 parent 5f19f92 commit 675d686

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/start/src/config/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
6868
name === VITE_ENVIRONMENTS.server,
6969
),
7070
},
71+
resolve: {
72+
// remove when https://github.com/solidjs/vite-plugin-solid/pull/228 is released
73+
externalConditions: ["solid", "node"]
74+
}
7175
};
7276
},
7377
async config(_, env) {

0 commit comments

Comments
 (0)