Skip to content

Commit 0d50661

Browse files
alan-agius4dgp1130
authored andcommitted
build: add browser-esbuild test infra
This commit adds browser-esbuild infra.
1 parent ba3f671 commit 0d50661

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

packages/angular_devkit/build_angular/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ LARGE_SPECS = {
340340
"@npm//popper.js",
341341
],
342342
},
343+
"browser-esbuild": {},
343344
}
344345

345346
[
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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.io/license
7+
*/
8+
9+
import { Schema } from '../schema';
10+
11+
export { describeBuilder } from '../../../testing';
12+
13+
export const BROWSER_BUILDER_INFO = Object.freeze({
14+
name: '@angular-devkit/build-angular:browser-esbuild',
15+
schemaPath: __dirname + '/../schema.json',
16+
});
17+
18+
/**
19+
* Contains all required browser builder fields.
20+
* Also disables progress reporting to minimize logging output.
21+
*/
22+
export const BASE_OPTIONS = Object.freeze<Schema>({
23+
index: 'src/index.html',
24+
main: 'src/main.ts',
25+
outputPath: 'dist',
26+
tsConfig: 'src/tsconfig.app.json',
27+
progress: false,
28+
29+
// Disable optimizations
30+
optimization: false,
31+
buildOptimizer: false,
32+
});

0 commit comments

Comments
 (0)