Skip to content

Commit

Permalink
fix(vite-plugin-angular): add rxjs and rxjs/operators to dep optimiza…
Browse files Browse the repository at this point in the history
…tions (#267)
  • Loading branch information
brandonroberts authored Feb 17, 2023
1 parent 2247cc8 commit aa82373
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion packages/platform/src/lib/router-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export function routerPlugin(): Plugin[] {
noExternal: ['@analogjs/**', '@angular/**'],
},
optimizeDeps: {
include: ['rxjs'],
exclude: ['@angular/platform-server', '@analogjs/router'],
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export function angular(options?: PluginOptions): Plugin[] {

return {
optimizeDeps: {
include: ['rxjs/operators', 'rxjs'],
esbuildOptions: {
plugins: [
createCompilerPlugin({
Expand Down

0 comments on commit aa82373

Please sign in to comment.