@ngtools/webpack
Advanced tools
Comparing version 18.2.0-next.0 to 18.2.0-next.1
{ | ||
"name": "@ngtools/webpack", | ||
"version": "18.2.0-next.0", | ||
"version": "18.2.0-next.1", | ||
"description": "Webpack plugin that AoT compiles your Angular components and modules.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -75,5 +75,4 @@ "use strict"; | ||
case ts.SyntaxKind.Identifier: | ||
const parent = node.parent; | ||
if (parent && ts.isShorthandPropertyAssignment(parent)) { | ||
const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(parent); | ||
if (node.parent && ts.isShorthandPropertyAssignment(node.parent)) { | ||
const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(node.parent); | ||
if (shorthandSymbol) { | ||
@@ -80,0 +79,0 @@ symbol = shorthandSymbol; |
@@ -108,3 +108,3 @@ "use strict"; | ||
return undefined; | ||
case 'templateUrl': | ||
case 'templateUrl': { | ||
const url = getResourceUrl(node.initializer); | ||
@@ -119,5 +119,6 @@ if (!url) { | ||
return nodeFactory.updatePropertyAssignment(node, nodeFactory.createIdentifier('template'), importName); | ||
} | ||
case 'styles': | ||
case 'styleUrl': | ||
case 'styleUrls': | ||
case 'styleUrls': { | ||
const isInlineStyle = name === 'styles'; | ||
@@ -144,2 +145,3 @@ let styles; | ||
return undefined; | ||
} | ||
default: | ||
@@ -146,0 +148,0 @@ return node; |
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
3042
139750