- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- Location:
- trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel/babel-loader.d.ts
r59329aa re29cc2e 8 8 9 9 declare module 'babel-loader' { 10 type BabelLoaderCustomizer<T> = ( 11 babel: typeof import('@babel/core'), 12 ) => { 10 type BabelLoaderCustomizer<T> = (babel: typeof import('@babel/core')) => { 13 11 customOptions?( 14 12 this: import('webpack').loader.LoaderContext, … … 21 19 loaderArguments: { source: string; map?: unknown; customOptions: T }, 22 20 ): import('@babel/core').TransformOptions; 21 result?( 22 this: import('webpack').loader.LoaderContext, 23 result: import('@babel/core').BabelFileResult, 24 context: { 25 source: string; 26 map?: unknown; 27 customOptions: T; 28 configuration: import('@babel/core').PartialConfig; 29 options: import('@babel/core').TransformOptions; 30 }, 31 ): import('@babel/core').BabelFileResult; 23 32 }; 24 33 function custom<T>(customizer: BabelLoaderCustomizer<T>): import('webpack').loader.Loader; -
trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
r59329aa re29cc2e 7 7 * found in the LICENSE file at https://angular.io/license 8 8 */ 9 var __importDefault = (this && this.__importDefault) || function (mod) { 10 return (mod && mod.__esModule) ? mod : { "default": mod }; 11 }; 9 12 Object.defineProperty(exports, "__esModule", { value: true }); 13 const remapping_1 = __importDefault(require("@ampproject/remapping")); 10 14 const linker_1 = require("@angular/compiler-cli/linker"); 11 15 const babel_loader_1 = require("babel-loader"); … … 119 123 return { 120 124 ...configuration.options, 121 // Workaround for https://github.com/babel/babel-loader/pull/896 is available122 // Delete once the above PR is released125 // 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 123 127 // eslint-disable-next-line @typescript-eslint/no-explicit-any 124 inputSourceMap: configuration.options.inputSourceMap ||false,128 inputSourceMap: false, 125 129 plugins, 126 130 presets: [ … … 147 151 }; 148 152 }, 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 }, 149 170 }; 150 171 });
Note:
See TracChangeset
for help on using the changeset viewer.