Skip to content

Commit

Permalink
fix(platform): include Angular libs for optimization, only clear page…
Browse files Browse the repository at this point in the history
… endpoints on build
  • Loading branch information
brandonroberts committed Jun 26, 2023
1 parent 02463ad commit df9dc60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/platform/src/lib/clear-client-page-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Plugin, normalizePath } from 'vite';
export function clearClientPageEndpointsPlugin(): Plugin {
return {
name: 'analogjs-platform-clear-client-page-endpoint',
apply: 'build',
config() {
return {
build: {
Expand Down
5 changes: 5 additions & 0 deletions packages/platform/src/lib/router-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export function routerPlugin(): Plugin[] {
],
},
optimizeDeps: {
include: [
'@angular/common',
'@angular/common/http',
'@angular/core/rxjs-interop',
],
exclude: ['@angular/platform-server', '@analogjs/router'],
},
};
Expand Down

0 comments on commit df9dc60

Please sign in to comment.