Skip to content

Commit 3b108ae

Browse files
Copilothotlong
andcommitted
Add Vite commonjs configuration to fix build bundling issue
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 3fcf0b4 commit 3b108ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/msw-react-crud/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@ export default defineConfig({
1515
'@objectstack/spec/system',
1616
'@objectstack/spec/ui'
1717
]
18+
},
19+
build: {
20+
commonjsOptions: {
21+
include: [/node_modules/, /packages/],
22+
transformMixedEsModules: true
23+
}
1824
}
1925
});

0 commit comments

Comments
 (0)