@@ -41,7 +41,7 @@ var __importStar = (this && this.__importStar) || (function () {
41
41
} ) ( ) ;
42
42
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
43
43
exports . AngularWebpackPlugin = exports . imageDomains = void 0 ;
44
- const assert_1 = require ( "assert" ) ;
44
+ const node_assert_1 = require ( "node: assert" ) ;
45
45
const ts = __importStar ( require ( "typescript" ) ) ;
46
46
const paths_plugin_1 = require ( "../paths-plugin" ) ;
47
47
const resource_loader_1 = require ( "../resource_loader" ) ;
@@ -91,14 +91,14 @@ class AngularWebpackPlugin {
91
91
// The compilerCliModule field is guaranteed to be defined during a compilation
92
92
// due to the `beforeCompile` hook. Usage of this property accessor prior to the
93
93
// hook execution is an implementation error.
94
- assert_1 . strict . ok ( this . compilerCliModule , `'@angular/compiler-cli' used prior to Webpack compilation.` ) ;
94
+ node_assert_1 . strict . ok ( this . compilerCliModule , `'@angular/compiler-cli' used prior to Webpack compilation.` ) ;
95
95
return this . compilerCliModule ;
96
96
}
97
97
get compilerCliTooling ( ) {
98
98
// The compilerCliToolingModule field is guaranteed to be defined during a compilation
99
99
// due to the `beforeCompile` hook. Usage of this property accessor prior to the
100
100
// hook execution is an implementation error.
101
- assert_1 . strict . ok ( this . compilerCliToolingModule , `'@angular/compiler-cli' used prior to Webpack compilation.` ) ;
101
+ node_assert_1 . strict . ok ( this . compilerCliToolingModule , `'@angular/compiler-cli' used prior to Webpack compilation.` ) ;
102
102
return this . compilerCliToolingModule ;
103
103
}
104
104
get options ( ) {
@@ -527,7 +527,7 @@ class AngularWebpackPlugin {
527
527
this . compilerCliToolingModule ??= await new Function ( `return import('@angular/compiler-cli/private/tooling');` ) ( ) ;
528
528
}
529
529
async addFileEmitHistory ( filePath , content ) {
530
- assert_1 . strict . ok ( this . webpackCreateHash , 'File emitter is used prior to Webpack compilation' ) ;
530
+ node_assert_1 . strict . ok ( this . webpackCreateHash , 'File emitter is used prior to Webpack compilation' ) ;
531
531
const historyData = {
532
532
length : content . length ,
533
533
hash : this . webpackCreateHash ( 'xxhash64' ) . update ( content ) . digest ( ) ,
0 commit comments