"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/build_angular/src/karma/index.ts" between
angular-cli-12.0.3.tar.gz and angular-cli-12.0.4.tar.gz

About: Angular CLI is a command line interface for Angular.

index.ts  (angular-cli-12.0.3):index.ts  (angular-cli-12.0.4)
skipping to change at line 46 skipping to change at line 46
async function initialize( async function initialize(
options: KarmaBuilderOptions, options: KarmaBuilderOptions,
context: BuilderContext, context: BuilderContext,
webpackConfigurationTransformer?: ExecutionTransformer<webpack.Configuration>, webpackConfigurationTransformer?: ExecutionTransformer<webpack.Configuration>,
): Promise<[typeof import('karma'), webpack.Configuration]> { ): Promise<[typeof import('karma'), webpack.Configuration]> {
const { config } = await generateBrowserWebpackConfigFromContext( const { config } = await generateBrowserWebpackConfigFromContext(
// only two properties are missing: // only two properties are missing:
// * `outputPath` which is fixed for tests // * `outputPath` which is fixed for tests
// * `budgets` which might be incorrect due to extra dev libs // * `budgets` which might be incorrect due to extra dev libs
{ {
...((options as unknown) as BrowserBuilderOptions), ...(options as unknown as BrowserBuilderOptions),
outputPath: '', outputPath: '',
budgets: undefined, budgets: undefined,
optimization: false, optimization: false,
buildOptimizer: false, buildOptimizer: false,
aot: false, aot: false,
vendorChunk: true, vendorChunk: true,
namedChunks: true, namedChunks: true,
extractLicenses: false, extractLicenses: false,
outputHashing: OutputHashing.None, outputHashing: OutputHashing.None,
// The webpack tier owns the watch behavior so we want to force it in the config. // The webpack tier owns the watch behavior so we want to force it in the config.
// When not in watch mode, webpack-dev-middleware will call `compiler.watc h` anyway. // When not in watch mode, webpack-dev-middleware will call `compiler.watc h` anyway.
// https://github.com/webpack/webpack-dev-middleware/blob/698c9ae5e9bb9a01 3985add6189ff21c1a1ec185/src/index.js#L65 // https://github.com/webpack/webpack-dev-middleware/blob/698c9ae5e9bb9a01 3985add6189ff21c1a1ec185/src/index.js#L65
// https://github.com/webpack/webpack/blob/cde1b73e12eb8a77eb9ba42e7920c9e c5d29c2c9/lib/Compiler.js#L379-L388 // https://github.com/webpack/webpack/blob/cde1b73e12eb8a77eb9ba42e7920c9e c5d29c2c9/lib/Compiler.js#L379-L388
watch: true, watch: true,
extractCss: true,
}, },
context, context,
(wco) => [ (wco) => [
getCommonConfig(wco), getCommonConfig(wco),
getStylesConfig(wco), getStylesConfig(wco),
getTypeScriptConfig(wco), getTypeScriptConfig(wco),
getTestConfig(wco), getTestConfig(wco),
getWorkerConfig(wco), getWorkerConfig(wco),
], ],
); );
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)