@angular-devkit/build-angular
Version:
Angular Webpack Build Facade
24 lines (23 loc) • 820 B
JavaScript
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeSourceMaps = void 0;
function normalizeSourceMaps(sourceMap) {
const scripts = typeof sourceMap === 'object' ? sourceMap.scripts : sourceMap;
const styles = typeof sourceMap === 'object' ? sourceMap.styles : sourceMap;
const hidden = typeof sourceMap === 'object' && sourceMap.hidden || false;
const vendor = typeof sourceMap === 'object' && sourceMap.vendor || false;
return {
vendor,
hidden,
scripts,
styles,
};
}
exports.normalizeSourceMaps = normalizeSourceMaps;
;