Skip to content

Commit e325632

Browse files
committed
fix: commonjs build options in vite config
1 parent 6bf1385 commit e325632

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

workbench/tanstack/vite.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ const config = defineConfig({
1616
nitro({
1717
config: {
1818
modules: ['workflow/nitro'],
19-
alias: {
20-
debug: 'unenv/dist/runtime/npm/debug.mjs',
21-
},
2219
},
2320
}),
2421
tailwindcss(),
2522
tanstackStart(),
2623
viteReact(),
2724
],
25+
build: {
26+
commonjsOptions: {
27+
transformMixedEsModules: true,
28+
},
29+
},
2830
});
2931

3032
export default config;

0 commit comments

Comments
 (0)