Skip to content

Commit 3806fdc

Browse files
author
Angular Builds
committed
523d539 feat(@angular-devkit/build-angular): add aot option to karma
1 parent 68cf9d5 commit 3806fdc

File tree

6 files changed

+20
-11
lines changed

6 files changed

+20
-11
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@angular-devkit/build-angular",
3-
"version": "19.2.0-next.1+sha-8faaf51",
3+
"version": "19.2.0-next.1+sha-523d539",
44
"description": "Angular Webpack Build Facade",
55
"main": "src/index.js",
66
"typings": "src/index.d.ts",
77
"builders": "builders.json",
88
"dependencies": {
99
"@ampproject/remapping": "2.3.0",
10-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#8faaf51",
11-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#8faaf51",
12-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#8faaf51",
13-
"@angular/build": "github:angular/angular-build-builds#8faaf51",
10+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#523d539",
11+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#523d539",
12+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#523d539",
13+
"@angular/build": "github:angular/angular-build-builds#523d539",
1414
"@babel/core": "7.26.8",
1515
"@babel/generator": "7.26.8",
1616
"@babel/helper-annotate-as-pure": "7.25.9",
@@ -21,7 +21,7 @@
2121
"@babel/preset-env": "7.26.8",
2222
"@babel/runtime": "7.26.7",
2323
"@discoveryjs/json-ext": "0.6.3",
24-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#8faaf51",
24+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#523d539",
2525
"@vitejs/plugin-basic-ssl": "1.2.0",
2626
"ansi-colors": "4.1.3",
2727
"autoprefixer": "10.4.20",
@@ -70,7 +70,7 @@
7070
"@angular/localize": "^19.0.0 || ^19.2.0-next.0",
7171
"@angular/platform-server": "^19.0.0 || ^19.2.0-next.0",
7272
"@angular/service-worker": "^19.0.0 || ^19.2.0-next.0",
73-
"@angular/ssr": "github:angular/angular-ssr-builds#8faaf51",
73+
"@angular/ssr": "github:angular/angular-ssr-builds#523d539",
7474
"@web/test-runner": "^0.19.0",
7575
"browser-sync": "^3.0.2",
7676
"jest": "^29.5.0",
@@ -91,7 +91,7 @@
9191
"@angular/service-worker": {
9292
"optional": true
9393
},
94-
"@angular/ssr": "github:angular/angular-ssr-builds#8faaf51",
94+
"@angular/ssr": "github:angular/angular-ssr-builds#523d539",
9595
"@web/test-runner": {
9696
"optional": true
9797
},

src/builders/karma/application_builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ async function initializeApplication(options, context, karmaOptions, transforms
301301
entryPoints,
302302
tsConfig: options.tsConfig,
303303
outputPath,
304-
aot: false,
304+
aot: options.aot,
305305
index: false,
306306
outputHashing: schema_1.OutputHashing.None,
307307
optimization: false,

src/builders/karma/schema.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* Karma target options for Build Facade.
33
*/
44
export type Schema = {
5+
/**
6+
* Run tests using Ahead of Time compilation.
7+
*/
8+
aot?: boolean;
59
/**
610
* List of static application assets.
711
*/

src/builders/karma/schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@
276276
"webWorkerTsConfig": {
277277
"type": "string",
278278
"description": "TypeScript configuration for Web Worker modules."
279+
},
280+
"aot": {
281+
"type": "boolean",
282+
"description": "Run tests using Ahead of Time compilation.",
283+
"default": false
279284
}
280285
},
281286
"additionalProperties": false,

src/utils/normalize-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
1010
exports.normalizeCacheOptions = normalizeCacheOptions;
1111
const node_path_1 = require("node:path");
1212
/** Version placeholder is replaced during the build process with actual package version */
13-
const VERSION = '19.2.0-next.1+sha-8faaf51';
13+
const VERSION = '19.2.0-next.1+sha-523d539';
1414
function hasCacheMetadata(value) {
1515
return (!!value &&
1616
typeof value === 'object' &&

uniqueId

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Tue Feb 11 2025 16:34:29 GMT+0000 (Coordinated Universal Time)
1+
Tue Feb 11 2025 16:56:59 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)