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(
110
110
111
111
http_archive (
112
112
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" ,
116
116
)
117
117
118
118
load ("@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 18
18
"@babel/plugin-transform-async-generator-functions" : " 7.27.1" ,
19
19
"@babel/plugin-transform-async-to-generator" : " 7.27.1" ,
20
20
"@babel/plugin-transform-runtime" : " 7.27.1" ,
21
- "@babel/preset-env" : " 7.27.1 " ,
21
+ "@babel/preset-env" : " 7.27.2 " ,
22
22
"@babel/runtime" : " 7.27.1" ,
23
23
"@discoveryjs/json-ext" : " 0.6.3" ,
24
24
"@ngtools/webpack" : " workspace:0.0.0-PLACEHOLDER" ,
56
56
"terser" : " 5.39.0" ,
57
57
"tree-kill" : " 1.2.2" ,
58
58
"tslib" : " 2.8.1" ,
59
- "webpack" : " 5.99.7 " ,
59
+ "webpack" : " 5.99.8 " ,
60
60
"webpack-dev-middleware" : " 7.4.2" ,
61
61
"webpack-dev-server" : " 5.2.1" ,
62
62
"webpack-merge" : " 6.0.1" ,
Original file line number Diff line number Diff line change 22
22
"devDependencies" : {
23
23
"@angular-devkit/core" : " workspace:0.0.0-PLACEHOLDER" ,
24
24
"@ngtools/webpack" : " workspace:0.0.0-PLACEHOLDER" ,
25
- "webpack" : " 5.99.7 " ,
25
+ "webpack" : " 5.99.8 " ,
26
26
"webpack-dev-server" : " 5.2.1"
27
27
},
28
28
"peerDependencies" : {
Original file line number Diff line number Diff line change 30
30
"@angular/compiler" : " 20.0.0-next.9" ,
31
31
"@angular/compiler-cli" : " 20.0.0-next.9" ,
32
32
"typescript" : " 5.8.3" ,
33
- "webpack" : " 5.99.7 "
33
+ "webpack" : " 5.99.8 "
34
34
}
35
35
}
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import * as path from 'node:path';
10
10
import type { LoaderContext } from 'webpack' ;
11
11
import { AngularPluginSymbol , FileEmitterCollection } from './symbol' ;
12
12
13
+ type SourceMap = NonNullable <
14
+ Exclude < Parameters < LoaderContext < unknown > [ 'callback' ] > [ 2 ] , string | undefined >
15
+ > ;
16
+
13
17
const JS_FILE_REGEXP = / \. [ c m ] ? j s $ / ;
14
18
15
19
export function angularWebpackLoader (
@@ -59,13 +63,10 @@ export function angularWebpackLoader(
59
63
result . dependencies . forEach ( ( dependency ) => this . addDependency ( dependency ) ) ;
60
64
61
65
let resultContent = result . content || '' ;
62
- let resultMap ;
66
+ let resultMap : SourceMap | undefined ;
63
67
if ( result . map ) {
64
68
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 ;
69
70
resultMap . sources = resultMap . sources . map ( ( source : string ) =>
70
71
path . join ( path . dirname ( this . resourcePath ) , source ) ,
71
72
) ;
You can’t perform that action at this time.
0 commit comments