Skip to content

Commit e461933

Browse files
CopilotHristo313
andcommitted
Add optimizeDeps and test.deps.optimizer configurations to Vite configs
Co-authored-by: Hristo313 <57346540+Hristo313@users.noreply.github.com>
1 parent ce64fbe commit e461933

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

packages/cli/templates/react/igr-ts/projects/_base/files/vite.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,18 @@ export default defineConfig({
88
build: {
99
chunkSizeWarningLimit: 10 * 1024 * 1024, // 10 MB
1010
},
11+
optimizeDeps: {
12+
exclude: [],
13+
},
1114
plugins: [react()],
1215
test: {
16+
deps: {
17+
optimizer: {
18+
web: {
19+
enabled: false,
20+
},
21+
},
22+
},
1323
browser: {
1424
enabled: true,
1525
provider: 'playwright',

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/vite.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { viteStaticCopy } from 'vite-plugin-static-copy';
44

55
export default defineConfig({
66
base: './',
7+
optimizeDeps: {
8+
exclude: [],
9+
},
710
build: {
811
rollupOptions: {
912
output: {
@@ -22,6 +25,13 @@ export default defineConfig({
2225
chunkSizeWarningLimit: 10 * 1024 * 1024 // 10 MB
2326
},
2427
test: {
28+
deps: {
29+
optimizer: {
30+
web: {
31+
enabled: false,
32+
},
33+
},
34+
},
2535
browser: {
2636
enabled: true,
2737
provider: 'playwright',

0 commit comments

Comments
 (0)