Skip to content

Commit

Permalink
refactor(@angular-devkit/build-angular): remove unused plugin from se…
Browse files Browse the repository at this point in the history
…rver polyfills

RxJs is not imported in the server polyfills and thus we can safely remove this plugin.
  • Loading branch information
alan-agius4 committed Nov 9, 2023
1 parent 8915ca9 commit 9e294a3
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ export function createServerPolyfillBundleOptions(
return;
}

const { workspaceRoot } = options;
const buildOptions: BuildOptions = {
...polyfillBundleOptions,
platform: 'node',
Expand All @@ -307,9 +306,6 @@ export function createServerPolyfillBundleOptions(
},
};

buildOptions.plugins ??= [];
buildOptions.plugins.push(createRxjsEsmResolutionPlugin());

return () => buildOptions;
}

Expand Down

0 comments on commit 9e294a3

Please sign in to comment.