Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js

    r59329aa re29cc2e  
    77 * found in the LICENSE file at https://angular.io/license
    88 */
     9var __importDefault = (this && this.__importDefault) || function (mod) {
     10    return (mod && mod.__esModule) ? mod : { "default": mod };
     11};
    912Object.defineProperty(exports, "__esModule", { value: true });
     13const remapping_1 = __importDefault(require("@ampproject/remapping"));
    1014const linker_1 = require("@angular/compiler-cli/linker");
    1115const babel_loader_1 = require("babel-loader");
     
    119123            return {
    120124                ...configuration.options,
    121                 // Workaround for https://github.com/babel/babel-loader/pull/896 is available
    122                 // Delete once the above PR is released
     125                // Using `false` disables babel from attempting to locate sourcemaps or process any inline maps.
     126                // The babel types do not include the false option even though it is valid
    123127                // eslint-disable-next-line @typescript-eslint/no-explicit-any
    124                 inputSourceMap: configuration.options.inputSourceMap || false,
     128                inputSourceMap: false,
    125129                plugins,
    126130                presets: [
     
    147151            };
    148152        },
     153        result(result, { map: inputSourceMap }) {
     154            if (result.map && inputSourceMap) {
     155                // Merge the intermediate sourcemap generated by babel with the input source map.
     156                // The casting is required due to slight differences in the types for babel and
     157                // `@ampproject/remapping` source map objects but both are compatible with Webpack.
     158                // This method for merging is used because it provides more accurate output
     159                // and is faster while using less memory.
     160                result.map = {
     161                    // Convert the SourceMap back to simple plain object.
     162                    // This is needed because otherwise code-coverage will fail with `don't know how to turn this value into a node`
     163                    // Which is throw by Babel when it is invoked again from `istanbul-lib-instrument`.
     164                    // https://github.com/babel/babel/blob/780aa48d2a34dc55f556843074b6aed45e7eabeb/packages/babel-types/src/converters/valueToNode.ts#L115-L130
     165                    ...remapping_1.default([result.map, inputSourceMap], () => null),
     166                };
     167            }
     168            return result;
     169        },
    149170    };
    150171});
Note: See TracChangeset for help on using the changeset viewer.