Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ngtools/webpack

Package Overview
Dependencies
Maintainers
2
Versions
844
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngtools/webpack - npm Package Compare versions

Comparing version 19.0.0-next.0 to 19.0.0-next.1

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc