@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
|
@@ -8514,6 +8514,11 @@ import { ClassStmt as ClassStmt2, StmtModifier as StmtModifier3 } from "@angular
|
|
|
8514
8514
|
import ts84 from "typescript";
|
|
8515
8515
|
|
|
8516
8516
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
8517
|
+
var VE_DISABLED_MESSAGE = `
|
|
8518
|
+
This compilation is using the View Engine compiler which is no longer supported by the Angular team
|
|
8519
|
+
and is being removed. Please upgrade to the Ivy compiler by switching to \`NgtscProgram\`. See
|
|
8520
|
+
https://angular.io/guide/ivy for more information.
|
|
8521
|
+
`.trim().split("\n").join(" ");
|
|
8517
8522
|
var LOWER_FIELDS = ["useValue", "useFactory", "data", "id", "loadChildren"];
|
|
8518
8523
|
var R3_LOWER_FIELDS = [...LOWER_FIELDS, "providers", "imports", "exports"];
|
|
8519
8524
|
var emptyModules = {
|
|
@@ -10725,25 +10730,31 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
|
|
|
10725
10730
|
}
|
|
10726
10731
|
};
|
|
10727
10732
|
function parseStatementForUmdModule(statement) {
|
|
10728
|
-
const
|
|
10729
|
-
if (
|
|
10733
|
+
const wrapper = getUmdWrapper(statement);
|
|
10734
|
+
if (wrapper === null)
|
|
10730
10735
|
return null;
|
|
10731
|
-
const
|
|
10732
|
-
if (!ts93.isFunctionExpression(wrapperFn))
|
|
10733
|
-
return null;
|
|
10734
|
-
const factoryFnParamIndex = wrapperFn.parameters.findIndex((parameter) => ts93.isIdentifier(parameter.name) && parameter.name.text === "factory");
|
|
10736
|
+
const factoryFnParamIndex = wrapper.fn.parameters.findIndex((parameter) => ts93.isIdentifier(parameter.name) && parameter.name.text === "factory");
|
|
10735
10737
|
if (factoryFnParamIndex === -1)
|
|
10736
10738
|
return null;
|
|
10737
|
-
const factoryFn = stripParentheses(
|
|
10739
|
+
const factoryFn = stripParentheses(wrapper.call.arguments[factoryFnParamIndex]);
|
|
10738
10740
|
if (!factoryFn || !ts93.isFunctionExpression(factoryFn))
|
|
10739
10741
|
return null;
|
|
10740
|
-
return { wrapperFn, factoryFn };
|
|
10742
|
+
return { wrapperFn: wrapper.fn, factoryFn };
|
|
10741
10743
|
}
|
|
10742
|
-
function
|
|
10743
|
-
if (!ts93.isExpressionStatement(statement)
|
|
10744
|
+
function getUmdWrapper(statement) {
|
|
10745
|
+
if (!ts93.isExpressionStatement(statement))
|
|
10744
10746
|
return null;
|
|
10747
|
+
if (ts93.isParenthesizedExpression(statement.expression) && ts93.isCallExpression(statement.expression.expression) && ts93.isFunctionExpression(statement.expression.expression.expression)) {
|
|
10748
|
+
const call = statement.expression.expression;
|
|
10749
|
+
const fn = statement.expression.expression.expression;
|
|
10750
|
+
return { call, fn };
|
|
10751
|
+
}
|
|
10752
|
+
if (ts93.isCallExpression(statement.expression) && ts93.isParenthesizedExpression(statement.expression.expression) && ts93.isFunctionExpression(statement.expression.expression.expression)) {
|
|
10753
|
+
const call = statement.expression;
|
|
10754
|
+
const fn = statement.expression.expression.expression;
|
|
10755
|
+
return { call, fn };
|
|
10745
10756
|
}
|
|
10746
|
-
return
|
|
10757
|
+
return null;
|
|
10747
10758
|
}
|
|
10748
10759
|
function getImportsOfUmdModule(umdModule) {
|
|
10749
10760
|
const imports = [];
|