@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
|
@@ -19136,6 +19136,11 @@ function getAngularClassTransformerFactory(modules, annotateForClosureCompiler)
|
|
|
19136
19136
|
|
|
19137
19137
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
19138
19138
|
var MAX_FILE_COUNT_FOR_SINGLE_FILE_EMIT = 20;
|
|
19139
|
+
var VE_DISABLED_MESSAGE = `
|
|
19140
|
+
This compilation is using the View Engine compiler which is no longer supported by the Angular team
|
|
19141
|
+
and is being removed. Please upgrade to the Ivy compiler by switching to \`NgtscProgram\`. See
|
|
19142
|
+
https://angular.io/guide/ivy for more information.
|
|
19143
|
+
`.trim().split("\n").join(" ");
|
|
19139
19144
|
var LOWER_FIELDS = ["useValue", "useFactory", "data", "id", "loadChildren"];
|
|
19140
19145
|
var R3_LOWER_FIELDS = [...LOWER_FIELDS, "providers", "imports", "exports"];
|
|
19141
19146
|
var tempProgramHandlerForTest = null;
|
|
@@ -19152,6 +19157,9 @@ var AngularCompilerProgram = class {
|
|
|
19152
19157
|
this._optionsDiagnostics = [];
|
|
19153
19158
|
this._transformTsDiagnostics = [];
|
|
19154
19159
|
this._isCompilingAngularCore = null;
|
|
19160
|
+
if (true) {
|
|
19161
|
+
throw new Error(VE_DISABLED_MESSAGE);
|
|
19162
|
+
}
|
|
19155
19163
|
this.rootNames = [...rootNames];
|
|
19156
19164
|
if (!options.disableTypeScriptVersionCheck) {
|
|
19157
19165
|
verifySupportedTypeScriptVersion();
|
|
@@ -19852,9 +19860,6 @@ function isIvyNgModule(clazz) {
|
|
|
19852
19860
|
}
|
|
19853
19861
|
|
|
19854
19862
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
19855
|
-
function filterErrorsAndWarnings(diagnostics) {
|
|
19856
|
-
return diagnostics.filter((d) => d.category !== ts86.DiagnosticCategory.Message);
|
|
19857
|
-
}
|
|
19858
19863
|
var defaultFormatHost = {
|
|
19859
19864
|
getCurrentDirectory: () => ts86.sys.getCurrentDirectory(),
|
|
19860
19865
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -20017,7 +20022,9 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs5) {
|
|
|
20017
20022
|
return null;
|
|
20018
20023
|
}
|
|
20019
20024
|
function exitCodeFromResult(diags) {
|
|
20020
|
-
if (!diags
|
|
20025
|
+
if (!diags)
|
|
20026
|
+
return 0;
|
|
20027
|
+
if (diags.every((diag) => diag.category !== ts86.DiagnosticCategory.Error)) {
|
|
20021
20028
|
return 0;
|
|
20022
20029
|
}
|
|
20023
20030
|
return diags.some((d) => d.source === "angular" && d.code === UNKNOWN_ERROR_CODE) ? 2 : 1;
|
|
@@ -20406,7 +20413,7 @@ function getFormatDiagnosticsHost(options) {
|
|
|
20406
20413
|
};
|
|
20407
20414
|
}
|
|
20408
20415
|
function reportErrorsAndExit(allDiagnostics, options, consoleError = console.error) {
|
|
20409
|
-
const errorsAndWarnings =
|
|
20416
|
+
const errorsAndWarnings = allDiagnostics.filter((d) => d.category !== ts88.DiagnosticCategory.Message);
|
|
20410
20417
|
printDiagnostics(errorsAndWarnings, options, consoleError);
|
|
20411
20418
|
return exitCodeFromResult(allDiagnostics);
|
|
20412
20419
|
}
|