File tree Expand file tree Collapse file tree 6 files changed +96
-76
lines changed Expand file tree Collapse file tree 6 files changed +96
-76
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ rules_js_register_toolchains(
110110
111111http_archive (
112112 name = "aspect_bazel_lib" ,
113- sha256 = "2be8a5df0b20b0ed37604b050da01dbf7ad45ad44768c0d478b64779b9f58412 " ,
114- strip_prefix = "bazel-lib-2.15.3 " ,
115- url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.15.3 /bazel-lib-v2.15.3 .tar.gz" ,
113+ sha256 = "fc8fe1be58ae39f84a8613d554534760c7f0819d407afcc98bbcbd990523bfed " ,
114+ strip_prefix = "bazel-lib-2.16.0 " ,
115+ url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.16.0 /bazel-lib-v2.16.0 .tar.gz" ,
116116)
117117
118118load ("@aspect_bazel_lib//lib:repositories.bzl" , "aspect_bazel_lib_dependencies" , "aspect_bazel_lib_register_toolchains" )
Original file line number Diff line number Diff line change 1818 "@babel/plugin-transform-async-generator-functions" : " 7.27.1" ,
1919 "@babel/plugin-transform-async-to-generator" : " 7.27.1" ,
2020 "@babel/plugin-transform-runtime" : " 7.27.1" ,
21- "@babel/preset-env" : " 7.27.1 " ,
21+ "@babel/preset-env" : " 7.27.2 " ,
2222 "@babel/runtime" : " 7.27.1" ,
2323 "@discoveryjs/json-ext" : " 0.6.3" ,
2424 "@ngtools/webpack" : " workspace:0.0.0-PLACEHOLDER" ,
5656 "terser" : " 5.39.0" ,
5757 "tree-kill" : " 1.2.2" ,
5858 "tslib" : " 2.8.1" ,
59- "webpack" : " 5.99.7 " ,
59+ "webpack" : " 5.99.8 " ,
6060 "webpack-dev-middleware" : " 7.4.2" ,
6161 "webpack-dev-server" : " 5.2.1" ,
6262 "webpack-merge" : " 6.0.1" ,
Original file line number Diff line number Diff line change 2222 "devDependencies" : {
2323 "@angular-devkit/core" : " workspace:0.0.0-PLACEHOLDER" ,
2424 "@ngtools/webpack" : " workspace:0.0.0-PLACEHOLDER" ,
25- "webpack" : " 5.99.7 " ,
25+ "webpack" : " 5.99.8 " ,
2626 "webpack-dev-server" : " 5.2.1"
2727 },
2828 "peerDependencies" : {
Original file line number Diff line number Diff line change 3030 "@angular/compiler" : " 20.0.0-next.9" ,
3131 "@angular/compiler-cli" : " 20.0.0-next.9" ,
3232 "typescript" : " 5.8.3" ,
33- "webpack" : " 5.99.7 "
33+ "webpack" : " 5.99.8 "
3434 }
3535}
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import * as path from 'node:path';
1010import type { LoaderContext } from 'webpack' ;
1111import { AngularPluginSymbol , FileEmitterCollection } from './symbol' ;
1212
13+ type SourceMap = NonNullable <
14+ Exclude < Parameters < LoaderContext < unknown > [ 'callback' ] > [ 2 ] , string | undefined >
15+ > ;
16+
1317const JS_FILE_REGEXP = / \. [ c m ] ? j s $ / ;
1418
1519export function angularWebpackLoader (
@@ -59,13 +63,10 @@ export function angularWebpackLoader(
5963 result . dependencies . forEach ( ( dependency ) => this . addDependency ( dependency ) ) ;
6064
6165 let resultContent = result . content || '' ;
62- let resultMap ;
66+ let resultMap : SourceMap | undefined ;
6367 if ( result . map ) {
6468 resultContent = resultContent . replace ( / ^ \/ \/ # s o u r c e M a p p i n g U R L = [ ^ \r \n ] * / gm, '' ) ;
65- resultMap = JSON . parse ( result . map ) as Exclude <
66- Parameters < typeof callback > [ 2 ] ,
67- string | undefined
68- > ;
69+ resultMap = JSON . parse ( result . map ) as SourceMap ;
6970 resultMap . sources = resultMap . sources . map ( ( source : string ) =>
7071 path . join ( path . dirname ( this . resourcePath ) , source ) ,
7172 ) ;
You can’t perform that action at this time.
0 commit comments