Skip to content

Commit

Permalink
perf(@angular-devkit/build-angular): remove JavaScript transformer fr…
Browse files Browse the repository at this point in the history
…om server polyfills bundling

This is no longer needed as the server polyfills file there are no longer Angular deps that require to be "linked".

(cherry picked from commit 82f8550)
  • Loading branch information
alan-agius4 committed Oct 26, 2023
1 parent b1aa416 commit 07e2120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 83 deletions.
Expand Up @@ -17,7 +17,6 @@ import { createCompilerPlugin } from './angular/compiler-plugin';
import { SourceFileCache } from './angular/source-file-cache';
import { createCompilerPluginOptions } from './compiler-plugin-options';
import { createAngularLocaleDataPlugin } from './i18n-locale-plugin';
import { createJavaScriptTransformerPlugin } from './javascript-transfomer-plugin';
import { createRxjsEsmResolutionPlugin } from './rxjs-esm-resolution-plugin';
import { createSourcemapIgnorelistPlugin } from './sourcemap-ignorelist-plugin';
import { getFeatureSupport } from './utils';
Expand Down Expand Up @@ -282,7 +281,7 @@ export function createServerPolyfillBundleOptions(
return;
}

const { workspaceRoot, jit, sourcemapOptions, advancedOptimizations } = options;
const { workspaceRoot } = options;
const buildOptions: BuildOptions = {
...polyfillBundleOptions,
platform: 'node',
Expand Down Expand Up @@ -324,16 +323,7 @@ export function createServerPolyfillBundleOptions(
);
}

buildOptions.plugins.push(
createRxjsEsmResolutionPlugin(),
createJavaScriptTransformerPlugin({
jit,
sourcemap: !!sourcemapOptions.scripts,
babelFileCache: sourceFileCache?.babelFileCache,
advancedOptimizations,
maxWorkers: 1,
}),
);
buildOptions.plugins.push(createRxjsEsmResolutionPlugin());

return buildOptions;
}
Expand Down

This file was deleted.

0 comments on commit 07e2120

Please sign in to comment.