Skip to content

Commit 057b302

Browse files
chore: remove occurrences of splitVendorChunkPlugin from vite (#1757)
1 parent 51a33e0 commit 057b302

File tree

10 files changed

+9
-15
lines changed

10 files changed

+9
-15
lines changed

apps/analog-app/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export default defineConfig(({ mode, isSsrBuild }) => {
5858
}),
5959
nxViteTsPaths(),
6060
visualizer() as Plugin,
61-
// splitVendorChunkPlugin(),
6261
!isSsrBuild &&
6362
inspect({
6463
build: true,

apps/docs-app/docs/features/server/static-site-generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Below is a small example where we can append a script to include Google Analytic
239239
/// <reference types="vitest" />
240240

241241
import analog from '@analogjs/platform';
242-
import { defineConfig, splitVendorChunkPlugin } from 'vite';
242+
import { defineConfig } from 'vite';
243243
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
244244
import { PrerenderRoute } from 'nitropack';
245245

apps/docs-app/i18n/de/docusaurus-plugin-content-docs/current/features/server/static-site-generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Nachfolgend ein kleines Beispiel, in dem ein Skript angehängt wird, um Google A
183183
/// <reference types="vitest" />
184184

185185
import analog from '@analogjs/platform';
186-
import { defineConfig, splitVendorChunkPlugin } from 'vite';
186+
import { defineConfig } from 'vite';
187187
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
188188
import { PrerenderRoute } from 'nitropack';
189189

apps/docs-app/i18n/es/docusaurus-plugin-content-docs/current/features/server/static-site-generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ A continuación, se muestra un pequeño ejemplo donde podemos añadir un script
173173
/// <reference types="vitest" />
174174

175175
import analog from '@analogjs/platform';
176-
import { defineConfig, splitVendorChunkPlugin } from 'vite';
176+
import { defineConfig } from 'vite';
177177
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
178178
import { PrerenderRoute } from 'nitropack';
179179

apps/docs-app/i18n/zh-hans/docusaurus-plugin-content-docs/current/features/server/static-site-generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default defineConfig(() => {
181181
/// <reference types="vitest" />
182182

183183
import analog from '@analogjs/platform';
184-
import { defineConfig, splitVendorChunkPlugin } from 'vite';
184+
import { defineConfig } from 'vite';
185185
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
186186
import { PrerenderRoute } from 'nitropack';
187187

apps/trpc-app/vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import analog from '@analogjs/platform';
44
import { visualizer } from 'rollup-plugin-visualizer';
5-
import { defineConfig, Plugin, splitVendorChunkPlugin } from 'vite';
5+
import { defineConfig, Plugin } from 'vite';
66
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
77

88
// https://vitejs.dev/config/
@@ -33,7 +33,6 @@ export default defineConfig(({ mode }) => {
3333
}),
3434
nxViteTsPaths(),
3535
visualizer() as Plugin,
36-
splitVendorChunkPlugin(),
3736
],
3837
test: {
3938
reporters: ['default'],

packages/nx-plugin/src/generators/app/files/template-angular-v15/vite.config.ts__template__

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="vitest" />
22

33
import analog from '@analogjs/platform';
4-
import { defineConfig, Plugin, splitVendorChunkPlugin } from 'vite';
4+
import { defineConfig, Plugin } from 'vite';
55
import tsConfigPaths from 'vite-tsconfig-paths';
66

77
// https://vitejs.dev/config/
@@ -52,7 +52,6 @@ export default defineConfig(({ mode }) => {
5252
tsConfigPaths({
5353
root: '<%= offsetFromRoot %>',
5454
}),
55-
splitVendorChunkPlugin(),
5655
],
5756
test: {
5857
globals: true,

packages/nx-plugin/src/generators/app/files/template-angular-v16/vite.config.ts__template__

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="vitest" />
22

33
import analog from '@analogjs/platform';
4-
import { defineConfig, Plugin, splitVendorChunkPlugin } from 'vite';
4+
import { defineConfig, Plugin } from 'vite';
55
import tsConfigPaths from 'vite-tsconfig-paths';
66
<% if (addTailwind) { %>
77
// @ts-expect-error @tailwindcss/vite currently uses mts. TypeScript is complaining this, but it works as expected.
@@ -40,7 +40,6 @@ export default defineConfig(({ mode }) => {
4040
tsConfigPaths({
4141
root: '<%= offsetFromRoot %>',
4242
}),
43-
splitVendorChunkPlugin(),
4443
],
4544
test: {
4645
globals: true,

packages/nx-plugin/src/generators/app/files/template-angular-v17/vite.config.ts__template__

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="vitest" />
22

33
import analog from '@analogjs/platform';
4-
import { defineConfig, Plugin, splitVendorChunkPlugin } from 'vite';
4+
import { defineConfig, Plugin } from 'vite';
55
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
66
<% if (addTailwind) { %>
77
// @ts-expect-error @tailwindcss/vite currently uses mts. TypeScript is complaining this, but it works as expected.
@@ -47,7 +47,6 @@ export default defineConfig(({ mode }) => {
4747
analog(),
4848
<% } %>
4949
nxViteTsPaths(),
50-
splitVendorChunkPlugin(),
5150
],
5251
test: {
5352
globals: true,

packages/nx-plugin/src/generators/app/files/template-angular-v18/vite.config.ts__template__

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="vitest" />
22

33
import analog from '@analogjs/platform';
4-
import { defineConfig, Plugin, splitVendorChunkPlugin } from 'vite';
4+
import { defineConfig, Plugin } from 'vite';
55
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
66
<% if (addTailwind) { %>
77
// @ts-expect-error @tailwindcss/vite currently uses mts. TypeScript is complaining this, but it works as expected.
@@ -46,7 +46,6 @@ export default defineConfig(({ mode }) => {
4646
analog(),
4747
<% } %>
4848
nxViteTsPaths(),
49-
splitVendorChunkPlugin(),
5049
],
5150
test: {
5251
globals: true,

0 commit comments

Comments
 (0)