feat(@angular-devkit/build-angular): add externalDependencies
to th… · angular/angular-cli@a7709b7 (original) (raw)
`@@ -20,11 +20,11 @@ import { generateEntryPoints } from '../../utils/package-chunk-sort';
`
20
20
`import { augmentAppWithServiceWorker } from '../../utils/service-worker';
`
21
21
`import { getIndexInputFile, getIndexOutputFile } from '../../utils/webpack-browser-config';
`
22
22
`import { resolveGlobalStyles } from '../../webpack/configs';
`
23
``
`-
import { Schema as BrowserBuilderOptions, SourceMapClass } from '../browser/schema';
`
24
23
`import { createCompilerPlugin } from './compiler-plugin';
`
25
24
`import { DEFAULT_OUTDIR, bundle, logMessages } from './esbuild';
`
26
25
`import { logExperimentalWarnings } from './experimental-warnings';
`
27
26
`import { normalizeOptions } from './options';
`
``
27
`+
import { Schema as BrowserBuilderOptions, SourceMapClass } from './schema';
`
28
28
`import { bundleStylesheetText } from './stylesheets';
`
29
29
``
30
30
`/**
`
`@@ -35,7 +35,7 @@ import { bundleStylesheetText } from './stylesheets';
`
35
35
` * @returns A promise with the builder result output
`
36
36
` */
`
37
37
`// eslint-disable-next-line max-lines-per-function
`
38
``
`-
export async function execute(
`
``
38
`+
export async function buildEsbuildBrowser(
`
39
39
`options: BrowserBuilderOptions,
`
40
40
`context: BuilderContext,
`
41
41
`): Promise {
`
`@@ -312,6 +312,7 @@ async function bundleCode(
`
312
312
`sourcemap: sourcemapOptions.scripts && (sourcemapOptions.hidden ? 'external' : true),
`
313
313
`splitting: true,
`
314
314
` tsconfig,
`
``
315
`+
external: options.externalDependencies,
`
315
316
`write: false,
`
316
317
`platform: 'browser',
`
317
318
`preserveSymlinks: options.preserveSymlinks,
`
`@@ -339,4 +340,4 @@ async function bundleCode(
`
339
340
`});
`
340
341
`}
`
341
342
``
342
``
`-
export default createBuilder(execute);
`
``
343
`+
export default createBuilder(buildEsbuildBrowser);
`