@ngtools/webpack
Advanced tools
Comparing version 19.1.7 to 19.1.8
{ | ||
"name": "@ngtools/webpack", | ||
"version": "19.1.7", | ||
"version": "19.1.8", | ||
"description": "Webpack plugin that AoT compiles your Angular components and modules.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -49,4 +49,4 @@ "use strict"; | ||
exports.augmentHostWithCaching = augmentHostWithCaching; | ||
const crypto_1 = require("crypto"); | ||
const path = __importStar(require("path")); | ||
const node_crypto_1 = require("node:crypto"); | ||
const path = __importStar(require("node:path")); | ||
const ts = __importStar(require("typescript")); | ||
@@ -208,3 +208,3 @@ const paths_1 = require("./paths"); | ||
if (file.version === undefined) { | ||
file.version = (0, crypto_1.createHash)('sha256').update(file.text).digest('hex'); | ||
file.version = (0, node_crypto_1.createHash)('sha256').update(file.text).digest('hex'); | ||
} | ||
@@ -211,0 +211,0 @@ } |
@@ -45,3 +45,3 @@ "use strict"; | ||
exports.default = angularWebpackLoader; | ||
const path = __importStar(require("path")); | ||
const path = __importStar(require("node:path")); | ||
const symbol_1 = require("./symbol"); | ||
@@ -48,0 +48,0 @@ const JS_FILE_REGEXP = /\.[cm]?js$/; |
@@ -45,3 +45,3 @@ "use strict"; | ||
exports.normalizePath = normalizePath; | ||
const nodePath = __importStar(require("path")); | ||
const nodePath = __importStar(require("node:path")); | ||
const normalizationCache = new Map(); | ||
@@ -48,0 +48,0 @@ function normalizePath(path) { |
@@ -44,3 +44,3 @@ "use strict"; | ||
exports.AngularWebpackPlugin = exports.imageDomains = void 0; | ||
const assert_1 = require("assert"); | ||
const node_assert_1 = require("node:assert"); | ||
const ts = __importStar(require("typescript")); | ||
@@ -95,3 +95,3 @@ const paths_plugin_1 = require("../paths-plugin"); | ||
// hook execution is an implementation error. | ||
assert_1.strict.ok(this.compilerCliModule, `'@angular/compiler-cli' used prior to Webpack compilation.`); | ||
node_assert_1.strict.ok(this.compilerCliModule, `'@angular/compiler-cli' used prior to Webpack compilation.`); | ||
return this.compilerCliModule; | ||
@@ -103,3 +103,3 @@ } | ||
// hook execution is an implementation error. | ||
assert_1.strict.ok(this.compilerCliToolingModule, `'@angular/compiler-cli' used prior to Webpack compilation.`); | ||
node_assert_1.strict.ok(this.compilerCliToolingModule, `'@angular/compiler-cli' used prior to Webpack compilation.`); | ||
return this.compilerCliToolingModule; | ||
@@ -533,3 +533,3 @@ } | ||
async addFileEmitHistory(filePath, content) { | ||
assert_1.strict.ok(this.webpackCreateHash, 'File emitter is used prior to Webpack compilation'); | ||
node_assert_1.strict.ok(this.webpackCreateHash, 'File emitter is used prior to Webpack compilation'); | ||
const historyData = { | ||
@@ -536,0 +536,0 @@ length: content.length, |
@@ -44,3 +44,3 @@ "use strict"; | ||
exports.TypeScriptPathsPlugin = void 0; | ||
const path = __importStar(require("path")); | ||
const path = __importStar(require("node:path")); | ||
class TypeScriptPathsPlugin { | ||
@@ -47,0 +47,0 @@ baseUrl; |
143634