@ngtools/webpack
Advanced tools
Comparing version 19.0.0-next.0 to 19.0.0-next.1
{ | ||
"name": "@ngtools/webpack", | ||
"version": "19.0.0-next.0", | ||
"version": "19.0.0-next.1", | ||
"description": "Webpack plugin that AoT compiles your Angular components and modules.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -26,2 +26,3 @@ /** | ||
private compilerCliModule?; | ||
private compilerCliToolingModule?; | ||
private watchMode?; | ||
@@ -39,2 +40,3 @@ private ngtscNextProgram?; | ||
private get compilerCli(); | ||
private get compilerCliTooling(); | ||
get options(): AngularWebpackPluginOptions; | ||
@@ -41,0 +43,0 @@ apply(compiler: Compiler): void; |
@@ -57,2 +57,3 @@ "use strict"; | ||
compilerCliModule; | ||
compilerCliToolingModule; | ||
watchMode; | ||
@@ -87,2 +88,9 @@ ngtscNextProgram; | ||
} | ||
get compilerCliTooling() { | ||
// The compilerCliToolingModule field is guaranteed to be defined during a compilation | ||
// due to the `beforeCompile` hook. Usage of this property accessor prior to the | ||
// hook execution is an implementation error. | ||
assert_1.strict.ok(this.compilerCliToolingModule, `'@angular/compiler-cli' used prior to Webpack compilation.`); | ||
return this.compilerCliToolingModule; | ||
} | ||
get options() { | ||
@@ -502,5 +510,2 @@ return this.pluginOptions; | ||
async initializeCompilerCli() { | ||
if (this.compilerCliModule) { | ||
return; | ||
} | ||
// This uses a dynamic import to load `@angular/compiler-cli` which may be ESM. | ||
@@ -513,3 +518,4 @@ // CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript | ||
// be dropped. | ||
this.compilerCliModule = await new Function(`return import('@angular/compiler-cli');`)(); | ||
this.compilerCliModule ??= await new Function(`return import('@angular/compiler-cli');`)(); | ||
this.compilerCliToolingModule ??= await new Function(`return import('@angular/compiler-cli/private/tooling');`)(); | ||
} | ||
@@ -516,0 +522,0 @@ async addFileEmitHistory(filePath, content) { |
@@ -14,3 +14,3 @@ /** | ||
}, imageDomains: Set<string>): ts.CustomTransformers; | ||
export declare function createJitTransformers(builder: ts.BuilderProgram, compilerCli: typeof import('@angular/compiler-cli'), options: { | ||
export declare function createJitTransformers(builder: ts.BuilderProgram, compilerCli: typeof import('@angular/compiler-cli/private/tooling'), options: { | ||
inlineStyleFileExtension?: string; | ||
@@ -17,0 +17,0 @@ }): ts.CustomTransformers; |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
140361
3050
2