@angular/compiler-cli 13.0.0-rc.0 → 13.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/index.js +12 -6
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/ngcc/index.js +23 -12
- package/bundles/ngcc/index.js.map +1 -1
- package/bundles/ngcc/main-ngcc.js +23 -12
- package/bundles/ngcc/main-ngcc.js.map +1 -1
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +22 -11
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
- package/bundles/src/bin/ng_xi18n.js +12 -5
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +12 -5
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/main.d.ts +4 -1
- package/src/perform_compile.d.ts +0 -1
|
@@ -3481,25 +3481,31 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
|
|
|
3481
3481
|
}
|
|
3482
3482
|
};
|
|
3483
3483
|
function parseStatementForUmdModule(statement) {
|
|
3484
|
-
const
|
|
3485
|
-
if (
|
|
3484
|
+
const wrapper = getUmdWrapper(statement);
|
|
3485
|
+
if (wrapper === null)
|
|
3486
3486
|
return null;
|
|
3487
|
-
const
|
|
3488
|
-
if (!ts14.isFunctionExpression(wrapperFn))
|
|
3489
|
-
return null;
|
|
3490
|
-
const factoryFnParamIndex = wrapperFn.parameters.findIndex((parameter) => ts14.isIdentifier(parameter.name) && parameter.name.text === "factory");
|
|
3487
|
+
const factoryFnParamIndex = wrapper.fn.parameters.findIndex((parameter) => ts14.isIdentifier(parameter.name) && parameter.name.text === "factory");
|
|
3491
3488
|
if (factoryFnParamIndex === -1)
|
|
3492
3489
|
return null;
|
|
3493
|
-
const factoryFn = stripParentheses(
|
|
3490
|
+
const factoryFn = stripParentheses(wrapper.call.arguments[factoryFnParamIndex]);
|
|
3494
3491
|
if (!factoryFn || !ts14.isFunctionExpression(factoryFn))
|
|
3495
3492
|
return null;
|
|
3496
|
-
return { wrapperFn, factoryFn };
|
|
3493
|
+
return { wrapperFn: wrapper.fn, factoryFn };
|
|
3497
3494
|
}
|
|
3498
|
-
function
|
|
3499
|
-
if (!ts14.isExpressionStatement(statement)
|
|
3495
|
+
function getUmdWrapper(statement) {
|
|
3496
|
+
if (!ts14.isExpressionStatement(statement))
|
|
3500
3497
|
return null;
|
|
3498
|
+
if (ts14.isParenthesizedExpression(statement.expression) && ts14.isCallExpression(statement.expression.expression) && ts14.isFunctionExpression(statement.expression.expression.expression)) {
|
|
3499
|
+
const call = statement.expression.expression;
|
|
3500
|
+
const fn = statement.expression.expression.expression;
|
|
3501
|
+
return { call, fn };
|
|
3502
|
+
}
|
|
3503
|
+
if (ts14.isCallExpression(statement.expression) && ts14.isParenthesizedExpression(statement.expression.expression) && ts14.isFunctionExpression(statement.expression.expression.expression)) {
|
|
3504
|
+
const call = statement.expression;
|
|
3505
|
+
const fn = statement.expression.expression.expression;
|
|
3506
|
+
return { call, fn };
|
|
3501
3507
|
}
|
|
3502
|
-
return
|
|
3508
|
+
return null;
|
|
3503
3509
|
}
|
|
3504
3510
|
function getImportsOfUmdModule(umdModule) {
|
|
3505
3511
|
const imports = [];
|
|
@@ -4451,7 +4457,7 @@ var ProgramBasedEntryPointFinder = class extends TracingEntryPointFinder {
|
|
|
4451
4457
|
};
|
|
4452
4458
|
|
|
4453
4459
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/build_marker.mjs
|
|
4454
|
-
var NGCC_VERSION = "13.0.0-rc.
|
|
4460
|
+
var NGCC_VERSION = "13.0.0-rc.1";
|
|
4455
4461
|
function needsCleaning(packageJson) {
|
|
4456
4462
|
return Object.values(packageJson.__processed_by_ivy_ngcc__ || {}).some((value) => value !== NGCC_VERSION);
|
|
4457
4463
|
}
|
|
@@ -15363,6 +15369,11 @@ import { ClassStmt as ClassStmt2, StmtModifier as StmtModifier3 } from "@angular
|
|
|
15363
15369
|
import ts110 from "typescript";
|
|
15364
15370
|
|
|
15365
15371
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
15372
|
+
var VE_DISABLED_MESSAGE = `
|
|
15373
|
+
This compilation is using the View Engine compiler which is no longer supported by the Angular team
|
|
15374
|
+
and is being removed. Please upgrade to the Ivy compiler by switching to \`NgtscProgram\`. See
|
|
15375
|
+
https://angular.io/guide/ivy for more information.
|
|
15376
|
+
`.trim().split("\n").join(" ");
|
|
15366
15377
|
var LOWER_FIELDS = ["useValue", "useFactory", "data", "id", "loadChildren"];
|
|
15367
15378
|
var R3_LOWER_FIELDS = [...LOWER_FIELDS, "providers", "imports", "exports"];
|
|
15368
15379
|
var emptyModules = {
|