FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(@angular-devkit/build-angular): use sourcemap object in karma plugin by filipesilva · Pull Request #13584 · angular/angular-cli · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .ts  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { statsErrorsToString } from '../utilities/stats';
import { getWebpackStatsConfig } from '../models/webpack-configs/stats';
import { createConsoleLogger } from '@angular-devkit/core/node';
import { logging } from '@angular-devkit/core';
import { WebpackTestOptions } from '../models/build-options';

/**
* Enumerate needed (but not require/imported) dependencies from this file
Expand Down Expand Up @@ -63,7 +64,7 @@ const init: any = (config: any, emitter: any, customFileHandlers: any) => {
` be used from within Angular CLI and will not work correctly outside of it.`
)
}
const options = config.buildWebpack.options;
const options = config.buildWebpack.options as WebpackTestOptions;
const logger: logging.Logger = config.buildWebpack.logger || createConsoleLogger();
successCb = config.buildWebpack.successCb;
failureCb = config.buildWebpack.failureCb;
Expand All @@ -77,7 +78,7 @@ const init: any = (config: any, emitter: any, customFileHandlers: any) => {
}

// Add a reporter that fixes sourcemap urls.
if (options.sourceMap) {
if (options.sourceMap.scripts) {
config.reporters.unshift('@angular-devkit/build-angular--sourcemap-reporter');

// Code taken from https://github.com/tschaub/karma-source-map-support.
Expand Down

Back | FazBrowse Home | New Git URL