@angular/compiler-cli 20.0.0 → 20.1.0-next.0
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/{chunk-M3WWDK6S.js → chunk-CZ5FD3CS.js} +4 -15
- package/bundles/{chunk-M3WWDK6S.js.map → chunk-CZ5FD3CS.js.map} +1 -1
- package/bundles/{chunk-T36IFLGD.js → chunk-FPJJEIPU.js} +2 -2
- package/bundles/{chunk-A7TLTAA4.js → chunk-FYR5CLCG.js} +5 -5
- package/bundles/{chunk-A7TLTAA4.js.map → chunk-FYR5CLCG.js.map} +1 -1
- package/bundles/{chunk-4OIPE63R.js → chunk-N3B6BMGR.js} +30 -30
- package/bundles/{chunk-4OIPE63R.js.map → chunk-N3B6BMGR.js.map} +1 -1
- package/bundles/{chunk-5PLBB4J5.js → chunk-OVACIG5Q.js} +3 -3
- package/bundles/{chunk-5PLBB4J5.js.map → chunk-OVACIG5Q.js.map} +1 -1
- package/bundles/{chunk-YZVRRB6E.js → chunk-PG2VUSMN.js} +161 -324
- package/bundles/chunk-PG2VUSMN.js.map +6 -0
- package/bundles/{chunk-TSBVO2TY.js → chunk-UMD7AW7S.js} +1752 -885
- package/bundles/chunk-UMD7AW7S.js.map +6 -0
- package/bundles/index.js +19 -21
- package/bundles/index.js.map +2 -2
- package/bundles/linker/babel/index.js +9 -9
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +2 -2
- package/bundles/private/migrations.js +2 -3
- package/bundles/private/tooling.js +4 -5
- package/bundles/src/bin/ng_xi18n.js +8 -9
- package/bundles/src/bin/ng_xi18n.js.map +2 -2
- package/bundles/src/bin/ngc.js +6 -7
- package/bundles/src/bin/ngc.js.map +2 -2
- package/index.d.ts +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -10
- package/src/ngtsc/annotations/component/src/handler.d.ts +5 -2
- package/src/ngtsc/annotations/component/src/metadata.d.ts +7 -0
- package/src/ngtsc/annotations/component/src/selectorless.d.ts +16 -0
- package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/directive/src/shared.d.ts +2 -2
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/src/pipe.d.ts +1 -1
- package/src/ngtsc/core/api/src/public_options.d.ts +13 -0
- package/src/ngtsc/core/src/compiler.d.ts +1 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +28 -0
- package/src/ngtsc/docs/src/entities.d.ts +1 -1
- package/src/ngtsc/indexer/src/api.d.ts +20 -8
- package/src/ngtsc/metadata/src/api.d.ts +9 -3
- package/src/ngtsc/scope/index.d.ts +2 -1
- package/src/ngtsc/scope/src/api.d.ts +12 -2
- package/src/ngtsc/scope/src/selectorless_scope.d.ts +25 -0
- package/src/ngtsc/scope/src/typecheck.d.ts +5 -3
- package/src/ngtsc/transform/index.d.ts +1 -0
- package/src/ngtsc/transform/src/api.d.ts +0 -2
- package/src/ngtsc/transform/src/compilation.d.ts +2 -1
- package/src/ngtsc/transform/src/implicit_signal_debug_name_transform.d.ts +74 -0
- package/src/ngtsc/transform/src/transform.d.ts +1 -1
- package/src/ngtsc/translator/src/translator.d.ts +0 -3
- package/src/ngtsc/typecheck/api/api.d.ts +3 -0
- package/src/ngtsc/typecheck/api/checker.d.ts +24 -6
- package/src/ngtsc/typecheck/api/scope.d.ts +17 -1
- package/src/ngtsc/typecheck/api/symbols.d.ts +39 -3
- package/src/ngtsc/typecheck/src/checker.d.ts +12 -4
- package/src/ngtsc/typecheck/src/completion.d.ts +7 -2
- package/src/ngtsc/typecheck/src/oob.d.ts +14 -3
- package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +6 -2
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +1 -1
- package/bundles/chunk-TSBVO2TY.js.map +0 -6
- package/bundles/chunk-WUCT7QTW.js +0 -216
- package/bundles/chunk-WUCT7QTW.js.map +0 -6
- package/bundles/chunk-YZVRRB6E.js.map +0 -6
- package/bundles/private/bazel.js +0 -19
- package/bundles/private/bazel.js.map +0 -6
- package/private/babel.d.ts +0 -28
- package/private/bazel.d.ts +0 -12
- /package/bundles/{chunk-T36IFLGD.js.map → chunk-FPJJEIPU.js.map} +0 -0
package/bundles/index.js
CHANGED
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
import {createRequire as __cjsCompatRequire} from 'module';
|
|
3
3
|
const require = __cjsCompatRequire(import.meta.url);
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
GLOBAL_DEFS_FOR_TERSER,
|
|
7
|
-
GLOBAL_DEFS_FOR_TERSER_WITH_AOT,
|
|
8
|
-
constructorParametersDownlevelTransform
|
|
9
|
-
} from "./chunk-5PLBB4J5.js";
|
|
10
5
|
import {
|
|
11
6
|
DEFAULT_ERROR_CODE,
|
|
12
7
|
DecoratorType,
|
|
@@ -33,28 +28,31 @@ import {
|
|
|
33
28
|
isTsDiagnostic,
|
|
34
29
|
performCompilation,
|
|
35
30
|
readConfiguration
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import {
|
|
38
|
-
angularJitApplicationTransform,
|
|
39
|
-
getDownlevelDecoratorsTransform,
|
|
40
|
-
getInitializerApiJitTransform
|
|
41
|
-
} from "./chunk-T36IFLGD.js";
|
|
31
|
+
} from "./chunk-PG2VUSMN.js";
|
|
42
32
|
import {
|
|
43
33
|
ConsoleLogger,
|
|
44
34
|
LogLevel
|
|
45
35
|
} from "./chunk-H5Y7P5GQ.js";
|
|
46
36
|
import {
|
|
37
|
+
GLOBAL_DEFS_FOR_TERSER,
|
|
38
|
+
GLOBAL_DEFS_FOR_TERSER_WITH_AOT,
|
|
39
|
+
constructorParametersDownlevelTransform
|
|
40
|
+
} from "./chunk-OVACIG5Q.js";
|
|
41
|
+
import {
|
|
42
|
+
angularJitApplicationTransform,
|
|
43
|
+
getDownlevelDecoratorsTransform,
|
|
44
|
+
getInitializerApiJitTransform
|
|
45
|
+
} from "./chunk-FPJJEIPU.js";
|
|
46
|
+
import {
|
|
47
|
+
ActivePerfRecorder,
|
|
47
48
|
ErrorCode,
|
|
48
49
|
OptimizeFor,
|
|
50
|
+
PerfPhase,
|
|
49
51
|
TsCreateProgramDriver,
|
|
50
52
|
isLocalCompilationDiagnostics,
|
|
51
53
|
ngErrorCode
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import {
|
|
55
|
-
ActivePerfRecorder,
|
|
56
|
-
PerfPhase
|
|
57
|
-
} from "./chunk-WUCT7QTW.js";
|
|
54
|
+
} from "./chunk-UMD7AW7S.js";
|
|
55
|
+
import "./chunk-CZ5FD3CS.js";
|
|
58
56
|
import {
|
|
59
57
|
InvalidFileSystem,
|
|
60
58
|
LogicalFileSystem,
|
|
@@ -82,11 +80,11 @@ import {
|
|
|
82
80
|
} from "./chunk-U5SKOFKE.js";
|
|
83
81
|
import "./chunk-KPQ72R34.js";
|
|
84
82
|
|
|
85
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.
|
|
83
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.js
|
|
86
84
|
import { Version } from "@angular/compiler";
|
|
87
|
-
var VERSION = new Version("20.0.0");
|
|
85
|
+
var VERSION = new Version("20.1.0-next.0");
|
|
88
86
|
|
|
89
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/tsc_plugin.
|
|
87
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/tsc_plugin.js
|
|
90
88
|
var NgTscPlugin = class {
|
|
91
89
|
ngOptions;
|
|
92
90
|
name = "ngtsc";
|
|
@@ -162,7 +160,7 @@ var NgTscPlugin = class {
|
|
|
162
160
|
}
|
|
163
161
|
};
|
|
164
162
|
|
|
165
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/index.
|
|
163
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/index.js
|
|
166
164
|
setFileSystem(new NodeJSFileSystem());
|
|
167
165
|
export {
|
|
168
166
|
ConsoleLogger,
|
package/bundles/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
4
|
-
"mappings": "
|
|
3
|
+
"sources": ["../src/version.ts", "../src/ngtsc/tsc_plugin.ts", "../index.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,SAAQ,eAAc;AAEf,IAAM,UAAU,IAAI,QAAQ,mBAAmB;;;AC0DhD,IAAO,cAAP,MAAkB;EAcF;EAbpB,OAAO;EAEC,UAAoC;EACpC,OAA8B;EAC9B,YAA+B;EAEvC,IAAI,WAAQ;AACV,QAAI,KAAK,cAAc,MAAM;AAC3B,YAAM,IAAI,MAAM,2DAA2D;IAC7E;AACA,WAAO,KAAK;EACd;EAEA,YAAoB,WAAa;AAAb,SAAA,YAAA;AAClB,kBAAc,IAAI,iBAAgB,CAAE;EACtC;EAEA,SACE,MACA,YACA,SAA2B;AAK3B,SAAK,UAAU,EAAC,GAAG,KAAK,WAAW,GAAG,QAAO;AAC7C,SAAK,OAAO,eAAe,KAAK,MAAM,YAAY,KAAK,SAA0B,IAAI;AACrF,WAAO,KAAK;EACd;EAEA,iBACE,SACA,YAAuB;AAWvB,UAAM,eAAe,mBAAmB,YAAW;AACnD,QAAI,KAAK,SAAS,QAAQ,KAAK,YAAY,MAAM;AAC/C,YAAM,IAAI,MAAM,wDAAwD;IAC1E;AACA,SAAK,KAAK,2BAA0B;AACpC,UAAM,gBAAgB,IAAI,sBACxB,SACA,KAAK,MACL,KAAK,SACL,KAAK,KAAK,qBAAqB;AAEjC,UAAM,WAAW,IAAI,uCAAsC;AAC3D,UAAM,WAAW,eAAe,SAAY,SAAS,oBAAoB,UAAU,IAAI;AACvF,QAAI;AAEJ,UAAM,wBAAwB,oBAAI,IAAG;AACrC,QAAI,KAAK,KAAK,6BAA6B,QAAW;AACpD,iBAAW,gBAAgB,KAAK,KAAK,yBAAwB,KAAM,CAAA,GAAI;AACrE,8BAAsB,IAAI,QAAQ,YAAY,CAAC;MACjD;IACF;AAEA,QAAI,eAAe,UAAa,aAAa,MAAM;AACjD,eAAS;QACP;QACA,KAAK;QACL;QACA;QACA;QACgC;QACV;MAAK;IAE/B,OAAO;AACL,eAAS,oBAAmB,EAAG,oBAAoB,UAAU;AAC7D,eAAS,2BACP,YACA,UACA,SACA,KAAK,SACL,UACA,eACA,uBACA,cACA,OACA,KAAK;IAET;AACA,SAAK,YAAY,WAAW,WAAW,QAAQ,KAAK,IAAI;AACxD,WAAO;MACL,sBAAsB,KAAK,UAAU;MACrC,eAAe,KAAK,UAAU;;EAElC;EAEA,eAAe,MAAoB;AACjC,QAAI,SAAS,QAAW;AACtB,aAAO,KAAK,SAAS,eAAc;IACrC;AACA,WAAO,KAAK,SAAS,sBAAsB,MAAM,YAAY,YAAY;EAC3E;EAEA,uBAAoB;AAClB,WAAO,KAAK,SAAS,qBAAoB;EAC3C;EAEA,iBAAc;AACZ,WAAO,KAAK,SAAS,kBAAiB;EACxC;EAEA,qBAAkB;AAGhB,SAAK,SAAS,aAAa,MAAM,UAAU,cAAc;AACzD,WAAO,KAAK,SAAS,YAAW,EAAG;EACrC;;;;ACnJF,cAAc,IAAI,iBAAgB,CAAE;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -8,22 +8,22 @@ import {
|
|
|
8
8
|
LinkerEnvironment,
|
|
9
9
|
assert,
|
|
10
10
|
isFatalLinkerError
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-N3B6BMGR.js";
|
|
12
12
|
import {
|
|
13
13
|
ConsoleLogger,
|
|
14
14
|
LogLevel
|
|
15
15
|
} from "../../chunk-H5Y7P5GQ.js";
|
|
16
16
|
import "../../chunk-NVYT6OPE.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-CZ5FD3CS.js";
|
|
18
18
|
import {
|
|
19
19
|
NodeJSFileSystem
|
|
20
20
|
} from "../../chunk-U5SKOFKE.js";
|
|
21
21
|
import "../../chunk-KPQ72R34.js";
|
|
22
22
|
|
|
23
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.
|
|
23
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js
|
|
24
24
|
import { types as t4 } from "@babel/core";
|
|
25
25
|
|
|
26
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_factory.
|
|
26
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_factory.js
|
|
27
27
|
import { types as t } from "@babel/core";
|
|
28
28
|
var BabelAstFactory = class {
|
|
29
29
|
sourceUrl;
|
|
@@ -155,7 +155,7 @@ function isLExpression(expr) {
|
|
|
155
155
|
return t.isLVal(expr);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_host.
|
|
158
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_host.js
|
|
159
159
|
import { types as t2 } from "@babel/core";
|
|
160
160
|
var BabelAstHost = class {
|
|
161
161
|
getSymbolName(node) {
|
|
@@ -281,7 +281,7 @@ function isMinifiedBooleanLiteral(node) {
|
|
|
281
281
|
return t2.isUnaryExpression(node) && node.prefix && node.operator === "!" && t2.isNumericLiteral(node.argument) && (node.argument.value === 0 || node.argument.value === 1);
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_declaration_scope.
|
|
284
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_declaration_scope.js
|
|
285
285
|
import { types as t3 } from "@babel/core";
|
|
286
286
|
var BabelDeclarationScope = class {
|
|
287
287
|
declarationScope;
|
|
@@ -308,7 +308,7 @@ var BabelDeclarationScope = class {
|
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
|
|
311
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.
|
|
311
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js
|
|
312
312
|
function createEs2015LinkerPlugin({ fileSystem, logger, ...options }) {
|
|
313
313
|
let fileLinker = null;
|
|
314
314
|
return {
|
|
@@ -408,7 +408,7 @@ function buildCodeFrameError(file, message, node) {
|
|
|
408
408
|
return `${filename}: ${error.message}`;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_plugin.
|
|
411
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_plugin.js
|
|
412
412
|
function defaultLinkerPlugin(api, options) {
|
|
413
413
|
api.assertVersion(7);
|
|
414
414
|
return createEs2015LinkerPlugin({
|
|
@@ -418,7 +418,7 @@ function defaultLinkerPlugin(api, options) {
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/index.
|
|
421
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/babel/index.js
|
|
422
422
|
var babel_default = defaultLinkerPlugin;
|
|
423
423
|
export {
|
|
424
424
|
createEs2015LinkerPlugin,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
3
|
+
"sources": ["../../../linker/babel/src/es2015_linker_plugin.ts", "../../../linker/babel/src/ast/babel_ast_factory.ts", "../../../linker/babel/src/ast/babel_ast_host.ts", "../../../linker/babel/src/babel_declaration_scope.ts", "../../../linker/babel/src/babel_plugin.ts", "../../../linker/babel/index.ts"],
|
|
4
4
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAwC,SAASA,UAAQ;;;ACDzD,SAAQ,SAAS,SAAQ;AAgBnB,IAAO,kBAAP,MAAsB;EAGhB;EAFV,YAEU,WAAiB;AAAjB,SAAA,YAAA;EACP;EAEH,eAAe,WAAuC,iBAAiC;AAErF,aAAS,IAAI,gBAAgB,SAAS,GAAG,KAAK,GAAG,KAAK;AACpD,YAAM,UAAU,gBAAgB;AAChC,QAAE,WAAW,WAAW,WAAW,QAAQ,SAAQ,GAAI,CAAC,QAAQ,SAAS;IAC3E;EACF;EAEA,qBAAqB,EAAE;EAEvB,iBAAiB,QAAsB,OAAmB;AACxD,WAAO,QAAQ,eAAe,qCAAqC;AACnE,WAAO,EAAE,qBAAqB,KAAK,QAAQ,KAAK;EAClD;EAEA,uBACE,aACA,UACA,cAA0B;AAE1B,YAAQ,UAAU;MAChB,KAAK;MACL,KAAK;MACL,KAAK;AACH,eAAO,EAAE,kBAAkB,UAAU,aAAa,YAAY;MAChE;AACE,eAAO,EAAE,iBAAiB,UAAU,aAAa,YAAY;IACjE;EACF;EAEA,cAAc,EAAE;EAEhB,qBAAqB,QAAsB,MAAsB,MAAa;AAC5E,UAAM,OAAO,EAAE,eAAe,QAAQ,IAAI;AAC1C,QAAI,MAAM;AACR,QAAE,WAAW,MAAM,WAAW,eAA0B,KAAK;IAC/D;AACA,WAAO;EACT;EAEA,oBAAoB,EAAE;EAEtB,oBAAoB,YAA0B,SAAqB;AACjE,WAAO,EAAE,iBAAiB,YAAY,SAAwB,IAAI;EACpE;EAEA,4BAA4B,EAAE;EAE9B,0BACE,cACA,YACA,MAAiB;AAEjB,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AI,QAAQ,MAAM;AAChB,UAAM,IAAI,MAAM,qCAAqC;EACvD;AACF;AAKA,SAAS,oBAAoB,MAAiB,SAAiB,MAAY;AACzE,QAAM,WAAW,KAAK,KAAK,YAAY;AACvC,QAAM,QAAQ,KAAK,IAAI,WAAW,MAAM,OAAO;AAC/C,SAAO,GAAG,aAAa,MAAM;AAC/B;;;AIhKM,SAAU,oBAAoB,KAAgB,SAA+B;AACjF,MAAI,cAAc,CAAC;AAEnB,SAAO,yBAAyB;IAC9B,GAAG;IACH,YAAY,IAAI,iBAAgB;IAChC,QAAQ,IAAI,cAAc,SAAS,IAAI;GACxC;AACH;;;AC5BA,IAAA,gBAAe;",
|
|
5
5
|
"names": ["t", "t", "t", "t", "t"]
|
|
6
6
|
}
|
package/bundles/linker/index.js
CHANGED
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
assert,
|
|
11
11
|
isFatalLinkerError,
|
|
12
12
|
needsLinking
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-N3B6BMGR.js";
|
|
14
14
|
import "../chunk-NVYT6OPE.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-CZ5FD3CS.js";
|
|
16
16
|
import "../chunk-KPQ72R34.js";
|
|
17
17
|
export {
|
|
18
18
|
DEFAULT_LINKER_OPTIONS,
|
|
@@ -13,9 +13,8 @@ import {
|
|
|
13
13
|
TypeScriptReflectionHost,
|
|
14
14
|
createForwardRefResolver,
|
|
15
15
|
reflectObjectLiteral
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-WUCT7QTW.js";
|
|
16
|
+
} from "../chunk-UMD7AW7S.js";
|
|
17
|
+
import "../chunk-CZ5FD3CS.js";
|
|
19
18
|
import "../chunk-3AHGFMNS.js";
|
|
20
19
|
import "../chunk-U5SKOFKE.js";
|
|
21
20
|
import "../chunk-KPQ72R34.js";
|
|
@@ -6,11 +6,10 @@ import {
|
|
|
6
6
|
GLOBAL_DEFS_FOR_TERSER,
|
|
7
7
|
GLOBAL_DEFS_FOR_TERSER_WITH_AOT,
|
|
8
8
|
constructorParametersDownlevelTransform
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-WUCT7QTW.js";
|
|
9
|
+
} from "../chunk-OVACIG5Q.js";
|
|
10
|
+
import "../chunk-FPJJEIPU.js";
|
|
11
|
+
import "../chunk-UMD7AW7S.js";
|
|
12
|
+
import "../chunk-CZ5FD3CS.js";
|
|
14
13
|
import "../chunk-3AHGFMNS.js";
|
|
15
14
|
import "../chunk-U5SKOFKE.js";
|
|
16
15
|
import "../chunk-KPQ72R34.js";
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
import {
|
|
7
7
|
main,
|
|
8
8
|
readCommandLineAndConfiguration
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-FYR5CLCG.js";
|
|
10
10
|
import {
|
|
11
11
|
EmitFlags
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-WUCT7QTW.js";
|
|
12
|
+
} from "../../chunk-PG2VUSMN.js";
|
|
13
|
+
import "../../chunk-FPJJEIPU.js";
|
|
14
|
+
import "../../chunk-UMD7AW7S.js";
|
|
15
|
+
import "../../chunk-CZ5FD3CS.js";
|
|
17
16
|
import {
|
|
18
17
|
setFileSystem
|
|
19
18
|
} from "../../chunk-3AHGFMNS.js";
|
|
@@ -22,10 +21,10 @@ import {
|
|
|
22
21
|
} from "../../chunk-U5SKOFKE.js";
|
|
23
22
|
import "../../chunk-KPQ72R34.js";
|
|
24
23
|
|
|
25
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.
|
|
24
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.js
|
|
26
25
|
import "reflect-metadata";
|
|
27
26
|
|
|
28
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/extract_i18n.
|
|
27
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/extract_i18n.js
|
|
29
28
|
import yargs from "yargs";
|
|
30
29
|
function mainXi18n(args2, consoleError = console.error) {
|
|
31
30
|
const config = readXi18nCommandLineAndConfiguration(args2);
|
|
@@ -48,7 +47,7 @@ function readXi18nCommandLineAndConfiguration(args2) {
|
|
|
48
47
|
return { ...config, emitFlags: EmitFlags.I18nBundle };
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.
|
|
50
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.js
|
|
52
51
|
process.title = "Angular i18n Message Extractor (ng-xi18n)";
|
|
53
52
|
var args = process.argv.slice(2);
|
|
54
53
|
setFileSystem(new NodeJSFileSystem());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
4
|
-
"mappings": "
|
|
3
|
+
"sources": ["../../../src/bin/ng_xi18n.ts", "../../../src/extract_i18n.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAUA,OAAO;;;ACEP,OAAO,WAAW;AAMZ,SAAU,UACdA,OACA,eAAsC,QAAQ,OAAK;AAEnD,QAAM,SAAS,qCAAqCA,KAAI;AACxD,SAAO,KAAKA,OAAM,cAAc,QAAQ,QAAW,QAAW,MAAS;AACzE;AAEA,SAAS,qCAAqCA,OAAc;AAC1D,QAAM,UAA+B,CAAA;AACrC,QAAM,aAAa,MAAMA,KAAI,EAC1B,OAAO,cAAc,EAAC,MAAM,SAAQ,CAAC,EACrC,OAAO,UAAU,EAAC,MAAM,SAAQ,CAAC,EACjC,OAAO,WAAW,EAAC,MAAM,SAAQ,CAAC,EAClC,UAAS;AAEZ,MAAI,WAAW;AAAS,YAAQ,cAAc,WAAW;AACzD,MAAI,WAAW;AAAY,YAAQ,gBAAgB,WAAW;AAC9D,MAAI,WAAW;AAAQ,YAAQ,gBAAgB,WAAW;AAE1D,QAAM,SAAS,gCAAgCA,OAAM,SAAS;IAC5D;IACA;IACA;GACD;AAED,SAAO,EAAC,GAAG,QAAQ,WAAe,UAAU,WAAU;AACxD;;;AD9BA,QAAQ,QAAQ;AAChB,IAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,cAAc,IAAI,iBAAgB,CAAE;AACpC,QAAQ,WAAW,UAAU,IAAI;",
|
|
5
5
|
"names": ["args"]
|
|
6
6
|
}
|
package/bundles/src/bin/ngc.js
CHANGED
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
main
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-WUCT7QTW.js";
|
|
8
|
+
} from "../../chunk-FYR5CLCG.js";
|
|
9
|
+
import "../../chunk-PG2VUSMN.js";
|
|
10
|
+
import "../../chunk-FPJJEIPU.js";
|
|
11
|
+
import "../../chunk-UMD7AW7S.js";
|
|
12
|
+
import "../../chunk-CZ5FD3CS.js";
|
|
14
13
|
import {
|
|
15
14
|
setFileSystem
|
|
16
15
|
} from "../../chunk-3AHGFMNS.js";
|
|
@@ -19,7 +18,7 @@ import {
|
|
|
19
18
|
} from "../../chunk-U5SKOFKE.js";
|
|
20
19
|
import "../../chunk-KPQ72R34.js";
|
|
21
20
|
|
|
22
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/bin/ngc.
|
|
21
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/bin/ngc.js
|
|
23
22
|
import "reflect-metadata";
|
|
24
23
|
async function runNgcComamnd() {
|
|
25
24
|
process.title = "Angular Compiler (ngc)";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
4
|
-
"mappings": "
|
|
3
|
+
"sources": ["../../../src/bin/ngc.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAUA,OAAO;AAKP,eAAe,gBAAa;AAC1B,UAAQ,QAAQ;AAChB,QAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,gBAAc,IAAI,iBAAgB,CAAE;AAEpC,UAAQ,WAAW,KAAK,MAAM,QAAW,QAAW,QAAW,QAAW,MAAS;AACrF;AAEA,cAAa,EAAG,MAAM,CAAC,MAAK;AAC1B,UAAQ,MAAM,CAAC;AACf,UAAQ,WAAW;AACrB,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/index.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ export { NgTscPlugin, PluginCompilerHost } from './src/ngtsc/tsc_plugin';
|
|
|
11
11
|
export { NgtscProgram } from './src/ngtsc/program';
|
|
12
12
|
export { OptimizeFor } from './src/ngtsc/typecheck/api';
|
|
13
13
|
export { ConsoleLogger, Logger, LogLevel } from './src/ngtsc/logging';
|
|
14
|
-
export { NodeJSFileSystem, absoluteFrom } from './src/ngtsc/file_system';
|
|
14
|
+
export { NodeJSFileSystem, absoluteFrom, FileSystem, AbsoluteFsPath } from './src/ngtsc/file_system';
|
|
15
15
|
export * from './src/ngtsc/docs';
|
|
16
16
|
export { isLocalCompilationDiagnostics, ErrorCode, ngErrorCode } from './src/ngtsc/diagnostics';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
|
|
9
9
|
import { AstObject, AstValue } from '../../ast/ast_value';
|
|
10
|
-
export declare const PLACEHOLDER_VERSION = "20.0.0";
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "20.1.0-next.0";
|
|
11
11
|
export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
|
|
12
12
|
/**
|
|
13
13
|
* Parses the value of an enum from the AST value's symbol name.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler-cli",
|
|
3
|
-
"version": "20.0.0",
|
|
3
|
+
"version": "20.1.0-next.0",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -24,10 +24,6 @@
|
|
|
24
24
|
"types": "./linker/babel/index.d.ts",
|
|
25
25
|
"default": "./bundles/linker/babel/index.js"
|
|
26
26
|
},
|
|
27
|
-
"./private/bazel": {
|
|
28
|
-
"types": "./private/bazel.d.ts",
|
|
29
|
-
"default": "./bundles/private/bazel.js"
|
|
30
|
-
},
|
|
31
27
|
"./private/localize": {
|
|
32
28
|
"types": "./private/localize.d.ts",
|
|
33
29
|
"default": "./bundles/private/localize.js"
|
|
@@ -49,10 +45,10 @@
|
|
|
49
45
|
"convert-source-map": "^1.5.1",
|
|
50
46
|
"semver": "^7.0.0",
|
|
51
47
|
"tslib": "^2.3.0",
|
|
52
|
-
"yargs": "^
|
|
48
|
+
"yargs": "^18.0.0"
|
|
53
49
|
},
|
|
54
50
|
"peerDependencies": {
|
|
55
|
-
"@angular/compiler": "20.0.0",
|
|
51
|
+
"@angular/compiler": "20.1.0-next.0",
|
|
56
52
|
"typescript": ">=5.8 <5.9"
|
|
57
53
|
},
|
|
58
54
|
"peerDependenciesMeta": {
|
|
@@ -60,9 +56,6 @@
|
|
|
60
56
|
"optional": true
|
|
61
57
|
}
|
|
62
58
|
},
|
|
63
|
-
"devDependencies": {
|
|
64
|
-
"@angular/compiler": "workspace:*"
|
|
65
|
-
},
|
|
66
59
|
"repository": {
|
|
67
60
|
"type": "git",
|
|
68
61
|
"url": "https://github.com/angular/angular.git",
|
|
@@ -75,7 +75,8 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
|
|
|
75
75
|
private readonly implicitStandaloneValue;
|
|
76
76
|
private readonly typeCheckHostBindings;
|
|
77
77
|
private readonly enableSelectorless;
|
|
78
|
-
|
|
78
|
+
private readonly emitDeclarationOnly;
|
|
79
|
+
constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, metaReader: MetadataReader, scopeReader: ComponentScopeReader, compilerHost: Pick<ts.CompilerHost, 'getCanonicalFileName'>, scopeRegistry: LocalModuleScopeRegistry, typeCheckScopeRegistry: TypeCheckScopeRegistry, resourceRegistry: ResourceRegistry, isCore: boolean, strictCtorDeps: boolean, resourceLoader: ResourceLoader, rootDirs: ReadonlyArray<string>, defaultPreserveWhitespaces: boolean, i18nUseExternalIds: boolean, enableI18nLegacyMessageIdFormat: boolean, usePoisonedData: boolean, i18nNormalizeLineEndingsInICUs: boolean, moduleResolver: ModuleResolver, cycleAnalyzer: CycleAnalyzer, cycleHandlingStrategy: CycleHandlingStrategy, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, depTracker: DependencyTracker | null, injectableRegistry: InjectableClassRegistry, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, hostDirectivesResolver: HostDirectivesResolver, importTracker: ImportedSymbolsTracker, includeClassMetadata: boolean, compilationMode: CompilationMode, deferredSymbolTracker: DeferredSymbolTracker, forbidOrphanRendering: boolean, enableBlockSyntax: boolean, enableLetSyntax: boolean, externalRuntimeStyles: boolean, localCompilationExtraImportsTracker: LocalCompilationExtraImportsTracker | null, jitDeclarationRegistry: JitDeclarationRegistry, i18nPreserveSignificantWhitespace: boolean, strictStandalone: boolean, enableHmr: boolean, implicitStandaloneValue: boolean, typeCheckHostBindings: boolean, enableSelectorless: boolean, emitDeclarationOnly: boolean);
|
|
79
80
|
private literalCache;
|
|
80
81
|
private elementSchemaRegistry;
|
|
81
82
|
/**
|
|
@@ -152,6 +153,8 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
|
|
|
152
153
|
* `@Component.deferredImports`) and registers imported types as deferrable
|
|
153
154
|
* candidates.
|
|
154
155
|
*/
|
|
155
|
-
private
|
|
156
|
+
private registerDeferrableCandidate;
|
|
156
157
|
private compileDeferBlocks;
|
|
158
|
+
/** Creates a new binding parser. */
|
|
159
|
+
private getNewBindingParser;
|
|
157
160
|
}
|
|
@@ -71,6 +71,13 @@ export interface ComponentAnalysisData {
|
|
|
71
71
|
rawHostDirectives: ts.Expression | null;
|
|
72
72
|
/** Raw nodes representing the host bindings of the directive. */
|
|
73
73
|
hostBindingNodes: HostBindingNodes;
|
|
74
|
+
/** Whether selectorless is enabled for the specific component. */
|
|
75
|
+
selectorlessEnabled: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Names of the symbols within the source file that are referenced directly inside the template.
|
|
78
|
+
* Used to reduce the amount of lookups when determining which dependencies to expose.
|
|
79
|
+
*/
|
|
80
|
+
localReferencedSymbols: Set<string> | null;
|
|
74
81
|
}
|
|
75
82
|
export interface ComponentResolutionData {
|
|
76
83
|
declarations: R3TemplateDependencyMetadata[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
import { TmplAstNode } from '@angular/compiler';
|
|
9
|
+
/**
|
|
10
|
+
* Analyzes a component's template to determine if it's using selectorless syntax
|
|
11
|
+
* and to extract the names of the selectorless symbols that are referenced.
|
|
12
|
+
*/
|
|
13
|
+
export declare function analyzeTemplateForSelectorless(template: TmplAstNode[]): {
|
|
14
|
+
isSelectorless: boolean;
|
|
15
|
+
localReferencedSymbols: Set<string> | null;
|
|
16
|
+
};
|
|
@@ -61,7 +61,8 @@ export declare class DirectiveDecoratorHandler implements DecoratorHandler<Decor
|
|
|
61
61
|
private readonly implicitStandaloneValue;
|
|
62
62
|
private readonly usePoisonedData;
|
|
63
63
|
private readonly typeCheckHostBindings;
|
|
64
|
-
|
|
64
|
+
private readonly emitDeclarationOnly;
|
|
65
|
+
constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, metaReader: MetadataReader, injectableRegistry: InjectableClassRegistry, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, strictCtorDeps: boolean, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, importTracker: ImportedSymbolsTracker, includeClassMetadata: boolean, typeCheckScopeRegistry: TypeCheckScopeRegistry, compilationMode: CompilationMode, jitDeclarationRegistry: JitDeclarationRegistry, resourceRegistry: ResourceRegistry, strictStandalone: boolean, implicitStandaloneValue: boolean, usePoisonedData: boolean, typeCheckHostBindings: boolean, emitDeclarationOnly: boolean);
|
|
65
66
|
readonly precedence = HandlerPrecedence.PRIMARY;
|
|
66
67
|
readonly name = "DirectiveDecoratorHandler";
|
|
67
68
|
detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator | null> | undefined;
|
|
@@ -26,7 +26,7 @@ export interface HostBindingNodes {
|
|
|
26
26
|
* appear in the declarations of an `NgModule` and additional verification is done when processing
|
|
27
27
|
* the module.
|
|
28
28
|
*/
|
|
29
|
-
export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decorator: Readonly<Decorator>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker, evaluator: PartialEvaluator, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, annotateForClosureCompiler: boolean, compilationMode: CompilationMode, defaultSelector: string | null, strictStandalone: boolean, implicitStandaloneValue: boolean): {
|
|
29
|
+
export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decorator: Readonly<Decorator>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker, evaluator: PartialEvaluator, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, annotateForClosureCompiler: boolean, compilationMode: CompilationMode, defaultSelector: string | null, strictStandalone: boolean, implicitStandaloneValue: boolean, emitDeclarationOnly: boolean): {
|
|
30
30
|
jitForced: false;
|
|
31
31
|
decorator: Map<string, ts.Expression>;
|
|
32
32
|
metadata: R3DirectiveMetadata;
|
|
@@ -54,6 +54,6 @@ export declare function parseFieldStringArrayValue(directive: Map<string, ts.Exp
|
|
|
54
54
|
* automatically captured in the type of the `InputSignal`.
|
|
55
55
|
*
|
|
56
56
|
*/
|
|
57
|
-
export declare function parseDecoratorInputTransformFunction(clazz: ClassDeclaration, classPropertyName: string, value: DynamicValue | Reference, reflector: ReflectionHost, refEmitter: ReferenceEmitter, compilationMode: CompilationMode): DecoratorInputTransform;
|
|
57
|
+
export declare function parseDecoratorInputTransformFunction(clazz: ClassDeclaration, classPropertyName: string, value: DynamicValue | Reference, reflector: ReflectionHost, refEmitter: ReferenceEmitter, compilationMode: CompilationMode, emitDeclarationOnly: boolean): DecoratorInputTransform;
|
|
58
58
|
export declare function extractHostBindingResources(nodes: HostBindingNodes): ReadonlySet<Resource>;
|
|
59
59
|
export {};
|
|
@@ -85,7 +85,8 @@ export declare class NgModuleDecoratorHandler implements DecoratorHandler<Decora
|
|
|
85
85
|
private readonly compilationMode;
|
|
86
86
|
private readonly localCompilationExtraImportsTracker;
|
|
87
87
|
private readonly jitDeclarationRegistry;
|
|
88
|
-
|
|
88
|
+
private readonly emitDeclarationOnly;
|
|
89
|
+
constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaReader: MetadataReader, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, referencesRegistry: ReferencesRegistry, exportedProviderStatusResolver: ExportedProviderStatusResolver, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, isCore: boolean, refEmitter: ReferenceEmitter, annotateForClosureCompiler: boolean, onlyPublishPublicTypings: boolean, injectableRegistry: InjectableClassRegistry, perf: PerfRecorder, includeClassMetadata: boolean, includeSelectorScope: boolean, compilationMode: CompilationMode, localCompilationExtraImportsTracker: LocalCompilationExtraImportsTracker | null, jitDeclarationRegistry: JitDeclarationRegistry, emitDeclarationOnly: boolean);
|
|
89
90
|
readonly precedence = HandlerPrecedence.PRIMARY;
|
|
90
91
|
readonly name = "NgModuleDecoratorHandler";
|
|
91
92
|
detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator> | undefined;
|
|
@@ -18,7 +18,7 @@ import { InjectableClassRegistry } from '../common';
|
|
|
18
18
|
export interface PipeHandlerData {
|
|
19
19
|
meta: R3PipeMetadata;
|
|
20
20
|
classMetadata: R3ClassMetadata | null;
|
|
21
|
-
pipeNameExpr: ts.Expression;
|
|
21
|
+
pipeNameExpr: ts.Expression | null;
|
|
22
22
|
decorator: ts.Decorator | null;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -314,6 +314,19 @@ export interface BazelAndG3Options {
|
|
|
314
314
|
* extra imports are needed for bundling purposes in g3.
|
|
315
315
|
*/
|
|
316
316
|
generateExtraImportsInLocalMode?: boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Whether to allow the experimental declaration-only emission mode when the `emitDeclarationOnly`
|
|
319
|
+
* TS compiler option is enabled.
|
|
320
|
+
*
|
|
321
|
+
* The declaration-only emission mode relies on the local compilation mode for fast type
|
|
322
|
+
* declaration emission, i.e. emitting `.d.ts` files without type-checking. Certain restrictions
|
|
323
|
+
* on supported code constructs apply due to the absence of type information for external
|
|
324
|
+
* references.
|
|
325
|
+
*
|
|
326
|
+
* The mode is experimental and specifically tailored to support fast type declaration emission
|
|
327
|
+
* for the Gemini app in g3 for the initial phase of the experiment.
|
|
328
|
+
*/
|
|
329
|
+
_experimentalAllowEmitDeclarationOnly?: boolean;
|
|
317
330
|
}
|
|
318
331
|
/**
|
|
319
332
|
* Options related to i18n compilation support.
|
|
@@ -136,6 +136,7 @@ export declare class NgCompiler {
|
|
|
136
136
|
private readonly enableHmr;
|
|
137
137
|
private readonly implicitStandaloneValue;
|
|
138
138
|
private readonly enableSelectorless;
|
|
139
|
+
private readonly emitDeclarationOnly;
|
|
139
140
|
/**
|
|
140
141
|
* `NgCompiler` can be reused for multiple compilations (for resource-only changes), and each
|
|
141
142
|
* new compilation uses a fresh `PerfRecorder`. Thus, classes created with a lifespan of the
|
|
@@ -141,6 +141,10 @@ export declare enum ErrorCode {
|
|
|
141
141
|
* class used as a component).
|
|
142
142
|
*/
|
|
143
143
|
INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE = 2025,
|
|
144
|
+
/**
|
|
145
|
+
* Raised for `@Component` fields that aren't supported in a selectorless context.
|
|
146
|
+
*/
|
|
147
|
+
UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD = 2026,
|
|
144
148
|
SYMBOL_NOT_EXPORTED = 3001,
|
|
145
149
|
/**
|
|
146
150
|
* Raised when a relationship between directives and/or pipes would cause a cyclic import to be
|
|
@@ -325,6 +329,30 @@ export declare enum ErrorCode {
|
|
|
325
329
|
* not match any inputs/outputs of the directive.
|
|
326
330
|
*/
|
|
327
331
|
UNCLAIMED_DIRECTIVE_BINDING = 8018,
|
|
332
|
+
/**
|
|
333
|
+
* An `@defer` block with an implicit trigger does not have a placeholder, for example:
|
|
334
|
+
*
|
|
335
|
+
* ```
|
|
336
|
+
* @defer(on viewport) {
|
|
337
|
+
* Hello
|
|
338
|
+
* }
|
|
339
|
+
* ```
|
|
340
|
+
*/
|
|
341
|
+
DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER = 8019,
|
|
342
|
+
/**
|
|
343
|
+
* The `@placeholder` for an implicit `@defer` trigger is not set up correctly, for example:
|
|
344
|
+
*
|
|
345
|
+
* ```
|
|
346
|
+
* @defer(on viewport) {
|
|
347
|
+
* Hello
|
|
348
|
+
* } @placeholder {
|
|
349
|
+
* <!-- Multiple root nodes. -->
|
|
350
|
+
* <button></button>
|
|
351
|
+
* <div></div>
|
|
352
|
+
* }
|
|
353
|
+
* ```
|
|
354
|
+
*/
|
|
355
|
+
DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER = 8020,
|
|
328
356
|
/**
|
|
329
357
|
* A two way binding in a template has an incorrect syntax,
|
|
330
358
|
* parentheses outside brackets. For example:
|
|
@@ -114,7 +114,7 @@ export interface DirectiveEntry extends ClassEntry {
|
|
|
114
114
|
isStandalone: boolean;
|
|
115
115
|
}
|
|
116
116
|
export interface PipeEntry extends ClassEntry {
|
|
117
|
-
pipeName: string;
|
|
117
|
+
pipeName: string | null;
|
|
118
118
|
isStandalone: boolean;
|
|
119
119
|
usage: string;
|
|
120
120
|
isPure: boolean;
|