@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
package/bundles/src/bin/ngc.js
CHANGED
|
@@ -19149,6 +19149,11 @@ function getAngularClassTransformerFactory(modules, annotateForClosureCompiler)
|
|
|
19149
19149
|
|
|
19150
19150
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
19151
19151
|
var MAX_FILE_COUNT_FOR_SINGLE_FILE_EMIT = 20;
|
|
19152
|
+
var VE_DISABLED_MESSAGE = `
|
|
19153
|
+
This compilation is using the View Engine compiler which is no longer supported by the Angular team
|
|
19154
|
+
and is being removed. Please upgrade to the Ivy compiler by switching to \`NgtscProgram\`. See
|
|
19155
|
+
https://angular.io/guide/ivy for more information.
|
|
19156
|
+
`.trim().split("\n").join(" ");
|
|
19152
19157
|
var LOWER_FIELDS = ["useValue", "useFactory", "data", "id", "loadChildren"];
|
|
19153
19158
|
var R3_LOWER_FIELDS = [...LOWER_FIELDS, "providers", "imports", "exports"];
|
|
19154
19159
|
var tempProgramHandlerForTest = null;
|
|
@@ -19165,6 +19170,9 @@ var AngularCompilerProgram = class {
|
|
|
19165
19170
|
this._optionsDiagnostics = [];
|
|
19166
19171
|
this._transformTsDiagnostics = [];
|
|
19167
19172
|
this._isCompilingAngularCore = null;
|
|
19173
|
+
if (true) {
|
|
19174
|
+
throw new Error(VE_DISABLED_MESSAGE);
|
|
19175
|
+
}
|
|
19168
19176
|
this.rootNames = [...rootNames];
|
|
19169
19177
|
if (!options.disableTypeScriptVersionCheck) {
|
|
19170
19178
|
verifySupportedTypeScriptVersion();
|
|
@@ -19865,9 +19873,6 @@ function isIvyNgModule(clazz) {
|
|
|
19865
19873
|
}
|
|
19866
19874
|
|
|
19867
19875
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
19868
|
-
function filterErrorsAndWarnings(diagnostics) {
|
|
19869
|
-
return diagnostics.filter((d) => d.category !== ts86.DiagnosticCategory.Message);
|
|
19870
|
-
}
|
|
19871
19876
|
var defaultFormatHost = {
|
|
19872
19877
|
getCurrentDirectory: () => ts86.sys.getCurrentDirectory(),
|
|
19873
19878
|
getCanonicalFileName: (fileName) => fileName,
|
|
@@ -20030,7 +20035,9 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs5) {
|
|
|
20030
20035
|
return null;
|
|
20031
20036
|
}
|
|
20032
20037
|
function exitCodeFromResult(diags) {
|
|
20033
|
-
if (!diags
|
|
20038
|
+
if (!diags)
|
|
20039
|
+
return 0;
|
|
20040
|
+
if (diags.every((diag) => diag.category !== ts86.DiagnosticCategory.Error)) {
|
|
20034
20041
|
return 0;
|
|
20035
20042
|
}
|
|
20036
20043
|
return diags.some((d) => d.source === "angular" && d.code === UNKNOWN_ERROR_CODE) ? 2 : 1;
|
|
@@ -20419,7 +20426,7 @@ function getFormatDiagnosticsHost(options) {
|
|
|
20419
20426
|
};
|
|
20420
20427
|
}
|
|
20421
20428
|
function reportErrorsAndExit(allDiagnostics, options, consoleError = console.error) {
|
|
20422
|
-
const errorsAndWarnings =
|
|
20429
|
+
const errorsAndWarnings = allDiagnostics.filter((d) => d.category !== ts88.DiagnosticCategory.Message);
|
|
20423
20430
|
printDiagnostics(errorsAndWarnings, options, consoleError);
|
|
20424
20431
|
return exitCodeFromResult(allDiagnostics);
|
|
20425
20432
|
}
|