@ngtools/webpack
Advanced tools
Comparing version 18.1.0-next.0 to 18.1.0-next.1
{ | ||
"name": "@ngtools/webpack", | ||
"version": "18.1.0-next.0", | ||
"version": "18.1.0-next.1", | ||
"description": "Webpack plugin that AoT compiles your Angular components and modules.", | ||
@@ -30,3 +30,3 @@ "main": "./src/index.js", | ||
"@angular/compiler-cli": "^18.0.0 || ^18.1.0-next.0", | ||
"typescript": ">=5.4 <5.5", | ||
"typescript": ">=5.4 <5.6", | ||
"webpack": "^5.54.0" | ||
@@ -33,0 +33,0 @@ }, |
@@ -10,3 +10,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.timeEnd = exports.time = void 0; | ||
exports.time = time; | ||
exports.timeEnd = timeEnd; | ||
// Internal benchmark reporting flag. | ||
@@ -22,3 +23,2 @@ // Use with CLI --no-progress flag for best results. | ||
} | ||
exports.time = time; | ||
function timeEnd(label) { | ||
@@ -29,2 +29,1 @@ if (_benchmark) { | ||
} | ||
exports.timeEnd = timeEnd; |
@@ -10,3 +10,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addError = exports.addWarning = exports.createDiagnosticsReporter = void 0; | ||
exports.createDiagnosticsReporter = createDiagnosticsReporter; | ||
exports.addWarning = addWarning; | ||
exports.addError = addError; | ||
const typescript_1 = require("typescript"); | ||
@@ -26,10 +28,7 @@ function createDiagnosticsReporter(compilation, formatter) { | ||
} | ||
exports.createDiagnosticsReporter = createDiagnosticsReporter; | ||
function addWarning(compilation, message) { | ||
compilation.warnings.push(new compilation.compiler.webpack.WebpackError(message)); | ||
} | ||
exports.addWarning = addWarning; | ||
function addError(compilation, message) { | ||
compilation.errors.push(new compilation.compiler.webpack.WebpackError(message)); | ||
} | ||
exports.addError = addError; |
@@ -33,3 +33,9 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.augmentHostWithCaching = exports.augmentProgramWithVersioning = exports.augmentHostWithVersioning = exports.augmentHostWithSubstitutions = exports.augmentHostWithReplacements = exports.augmentHostWithDependencyCollection = exports.augmentHostWithResources = void 0; | ||
exports.augmentHostWithResources = augmentHostWithResources; | ||
exports.augmentHostWithDependencyCollection = augmentHostWithDependencyCollection; | ||
exports.augmentHostWithReplacements = augmentHostWithReplacements; | ||
exports.augmentHostWithSubstitutions = augmentHostWithSubstitutions; | ||
exports.augmentHostWithVersioning = augmentHostWithVersioning; | ||
exports.augmentProgramWithVersioning = augmentProgramWithVersioning; | ||
exports.augmentHostWithCaching = augmentHostWithCaching; | ||
const crypto_1 = require("crypto"); | ||
@@ -74,3 +80,2 @@ const path = __importStar(require("path")); | ||
} | ||
exports.augmentHostWithResources = augmentHostWithResources; | ||
function augmentResolveModuleNames(host, resolvedModuleModifier, moduleResolutionCache) { | ||
@@ -148,3 +153,2 @@ if (host.resolveModuleNames) { | ||
} | ||
exports.augmentHostWithDependencyCollection = augmentHostWithDependencyCollection; | ||
function augmentHostWithReplacements(host, replacements, moduleResolutionCache) { | ||
@@ -172,3 +176,2 @@ if (Object.keys(replacements).length === 0) { | ||
} | ||
exports.augmentHostWithReplacements = augmentHostWithReplacements; | ||
function augmentHostWithSubstitutions(host, substitutions) { | ||
@@ -193,3 +196,2 @@ const regexSubstitutions = []; | ||
} | ||
exports.augmentHostWithSubstitutions = augmentHostWithSubstitutions; | ||
function augmentHostWithVersioning(host) { | ||
@@ -205,3 +207,2 @@ const baseGetSourceFile = host.getSourceFile; | ||
} | ||
exports.augmentHostWithVersioning = augmentHostWithVersioning; | ||
function augmentProgramWithVersioning(program) { | ||
@@ -219,3 +220,2 @@ const baseGetSourceFiles = program.getSourceFiles; | ||
} | ||
exports.augmentProgramWithVersioning = augmentProgramWithVersioning; | ||
function augmentHostWithCaching(host, cache) { | ||
@@ -234,2 +234,1 @@ const baseGetSourceFile = host.getSourceFile; | ||
} | ||
exports.augmentHostWithCaching = augmentHostWithCaching; |
@@ -33,3 +33,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = exports.angularWebpackLoader = void 0; | ||
exports.angularWebpackLoader = angularWebpackLoader; | ||
exports.default = angularWebpackLoader; | ||
exports.angularWebpackLoader = angularWebpackLoader; | ||
exports.default = angularWebpackLoader; | ||
const path = __importStar(require("path")); | ||
@@ -85,3 +88,1 @@ const symbol_1 = require("./symbol"); | ||
} | ||
exports.angularWebpackLoader = angularWebpackLoader; | ||
exports.default = angularWebpackLoader; |
@@ -33,3 +33,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.externalizePath = exports.normalizePath = void 0; | ||
exports.externalizePath = void 0; | ||
exports.normalizePath = normalizePath; | ||
const nodePath = __importStar(require("path")); | ||
@@ -45,3 +46,2 @@ const normalizationCache = new Map(); | ||
} | ||
exports.normalizePath = normalizePath; | ||
const externalizationCache = new Map(); | ||
@@ -48,0 +48,0 @@ function externalizeForWindows(path) { |
@@ -33,3 +33,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createWebpackSystem = void 0; | ||
exports.createWebpackSystem = createWebpackSystem; | ||
const ts = __importStar(require("typescript")); | ||
@@ -106,2 +106,1 @@ const paths_1 = require("./paths"); | ||
} | ||
exports.createWebpackSystem = createWebpackSystem; |
@@ -33,3 +33,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.replaceBootstrap = exports.mergeTransformers = exports.createJitTransformers = exports.createAotTransformers = void 0; | ||
exports.createAotTransformers = createAotTransformers; | ||
exports.createJitTransformers = createJitTransformers; | ||
exports.mergeTransformers = mergeTransformers; | ||
exports.replaceBootstrap = replaceBootstrap; | ||
const ts = __importStar(require("typescript")); | ||
@@ -55,3 +58,2 @@ const elide_imports_1 = require("../transformers/elide_imports"); | ||
} | ||
exports.createAotTransformers = createAotTransformers; | ||
function createJitTransformers(builder, compilerCli, options) { | ||
@@ -66,3 +68,2 @@ const getTypeChecker = () => builder.getProgram().getTypeChecker(); | ||
} | ||
exports.createJitTransformers = createJitTransformers; | ||
function mergeTransformers(first, second) { | ||
@@ -84,3 +85,2 @@ const result = {}; | ||
} | ||
exports.mergeTransformers = mergeTransformers; | ||
/** | ||
@@ -131,2 +131,1 @@ * The name of the Angular platform that should be replaced within | ||
} | ||
exports.replaceBootstrap = replaceBootstrap; |
@@ -11,2 +11,3 @@ "use strict"; | ||
exports.InlineAngularResourceSymbol = exports.InlineAngularResourceLoaderPath = void 0; | ||
exports.default = default_1; | ||
exports.InlineAngularResourceLoaderPath = __filename; | ||
@@ -25,2 +26,1 @@ exports.InlineAngularResourceSymbol = Symbol('@ngtools/webpack[angular-resource]'); | ||
} | ||
exports.default = default_1; |
@@ -33,3 +33,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.elideImports = void 0; | ||
exports.elideImports = elideImports; | ||
const ts = __importStar(require("typescript")); | ||
@@ -157,2 +157,1 @@ // Remove imports for which all identifiers have been removed. | ||
} | ||
exports.elideImports = elideImports; |
@@ -33,3 +33,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findImageDomains = void 0; | ||
exports.findImageDomains = findImageDomains; | ||
const ts = __importStar(require("typescript")); | ||
@@ -154,2 +154,1 @@ const TARGET_TEXT = '@NgModule'; | ||
} | ||
exports.findImageDomains = findImageDomains; |
@@ -33,3 +33,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.removeIvyJitSupportCalls = void 0; | ||
exports.removeIvyJitSupportCalls = removeIvyJitSupportCalls; | ||
const ts = __importStar(require("typescript")); | ||
@@ -85,3 +85,2 @@ const elide_imports_1 = require("./elide_imports"); | ||
} | ||
exports.removeIvyJitSupportCalls = removeIvyJitSupportCalls; | ||
// Each Ivy private call expression is inside an IIFE | ||
@@ -88,0 +87,0 @@ function getIifeExpression(exprStmt) { |
@@ -33,3 +33,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getResourceUrl = exports.replaceResources = exports.NG_COMPONENT_RESOURCE_QUERY = void 0; | ||
exports.NG_COMPONENT_RESOURCE_QUERY = void 0; | ||
exports.replaceResources = replaceResources; | ||
exports.getResourceUrl = getResourceUrl; | ||
const ts = __importStar(require("typescript")); | ||
@@ -73,3 +75,2 @@ const inline_resource_1 = require("../loaders/inline-resource"); | ||
} | ||
exports.replaceResources = replaceResources; | ||
function visitDecorator(nodeFactory, node, typeChecker, resourceImportDeclarations, moduleKind, inlineStyleFileExtension) { | ||
@@ -178,3 +179,2 @@ if (!isComponentDecorator(node, typeChecker)) { | ||
} | ||
exports.getResourceUrl = getResourceUrl; | ||
function isComponentDecorator(node, typeChecker) { | ||
@@ -181,0 +181,0 @@ if (!ts.isDecorator(node)) { |
@@ -33,3 +33,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.transformTypescript = exports.createTypescriptContext = void 0; | ||
exports.createTypescriptContext = createTypescriptContext; | ||
exports.transformTypescript = transformTypescript; | ||
const path_1 = require("path"); | ||
@@ -80,3 +81,2 @@ const ts = __importStar(require("typescript")); | ||
} | ||
exports.createTypescriptContext = createTypescriptContext; | ||
function transformTypescript(content, transformers, program, compilerHost) { | ||
@@ -111,2 +111,1 @@ // Use given context or create a new one. | ||
} | ||
exports.transformTypescript = transformTypescript; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139566
3041