Skip to content

Commit 964a7bc

Browse files
author
Angular Builds
committed
597bfea1b feat(@schematics/angular): drop polyfills.ts file from new templates
1 parent b7d99e8 commit 964a7bc

19 files changed

+147
-35
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "@angular-devkit/build-angular",
3-
"version": "15.0.0-next.2+sha-f393b09",
3+
"version": "15.0.0-next.2+sha-597bfea",
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.2.0",
10-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#f393b0928",
11-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#f393b0928",
12-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#f393b0928",
10+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#597bfea1b",
11+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#597bfea1b",
12+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#597bfea1b",
1313
"@babel/core": "7.19.1",
1414
"@babel/generator": "7.19.0",
1515
"@babel/helper-annotate-as-pure": "7.18.6",
@@ -20,7 +20,7 @@
2020
"@babel/runtime": "7.19.0",
2121
"@babel/template": "7.18.10",
2222
"@discoveryjs/json-ext": "0.5.7",
23-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#f393b0928",
23+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#597bfea1b",
2424
"ansi-colors": "4.1.3",
2525
"autoprefixer": "10.4.12",
2626
"babel-loader": "8.2.5",

src/builders/browser-esbuild/options.js

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/builders/browser-esbuild/schema.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ export interface Schema {
111111
*/
112112
poll?: number;
113113
/**
114-
* The full path for the polyfills file, relative to the current workspace.
114+
* Polyfills to be included in the build.
115115
*/
116-
polyfills?: string;
116+
polyfills?: Polyfills;
117117
/**
118118
* Do not use the real path when resolving modules. If unset then will default to `true` if
119119
* NodeJS option --preserve-symlinks is set.
@@ -362,6 +362,10 @@ export declare enum OutputHashing {
362362
Media = "media",
363363
None = "none"
364364
}
365+
/**
366+
* Polyfills to be included in the build.
367+
*/
368+
export declare type Polyfills = string[] | string;
365369
export declare type ScriptElement = ScriptClass | string;
366370
export interface ScriptClass {
367371
/**

src/builders/browser-esbuild/schema.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/builders/browser-esbuild/schema.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,22 @@
1717
"description": "The full path for the main entry point to the app, relative to the current workspace."
1818
},
1919
"polyfills": {
20-
"type": "string",
21-
"description": "The full path for the polyfills file, relative to the current workspace."
20+
"description": "Polyfills to be included in the build.",
21+
"oneOf": [
22+
{
23+
"type": "array",
24+
"description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
25+
"items": {
26+
"type": "string",
27+
"uniqueItems": true
28+
},
29+
"default": []
30+
},
31+
{
32+
"type": "string",
33+
"description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
34+
}
35+
]
2236
},
2337
"tsConfig": {
2438
"type": "string",

src/builders/browser/schema.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ export interface Schema {
106106
*/
107107
poll?: number;
108108
/**
109-
* The full path for the polyfills file, relative to the current workspace.
109+
* Polyfills to be included in the build.
110110
*/
111-
polyfills?: string;
111+
polyfills?: Polyfills;
112112
/**
113113
* Do not use the real path when resolving modules. If unset then will default to `true` if
114114
* NodeJS option --preserve-symlinks is set.
@@ -359,6 +359,10 @@ export declare enum OutputHashing {
359359
Media = "media",
360360
None = "none"
361361
}
362+
/**
363+
* Polyfills to be included in the build.
364+
*/
365+
export declare type Polyfills = string[] | string;
362366
export declare type ScriptElement = ScriptClass | string;
363367
export interface ScriptClass {
364368
/**

src/builders/browser/schema.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/builders/browser/schema.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,22 @@
1717
"description": "The full path for the main entry point to the app, relative to the current workspace."
1818
},
1919
"polyfills": {
20-
"type": "string",
21-
"description": "The full path for the polyfills file, relative to the current workspace."
20+
"description": "Polyfills to be included in the build.",
21+
"oneOf": [
22+
{
23+
"type": "array",
24+
"description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
25+
"items": {
26+
"type": "string",
27+
"uniqueItems": true
28+
},
29+
"default": []
30+
},
31+
{
32+
"type": "string",
33+
"description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
34+
}
35+
]
2236
},
2337
"tsConfig": {
2438
"type": "string",

src/builders/karma/schema.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export interface Schema {
4848
*/
4949
poll?: number;
5050
/**
51-
* The name of the polyfills file.
51+
* Polyfills to be included in the build.
5252
*/
53-
polyfills?: string;
53+
polyfills?: Polyfills;
5454
/**
5555
* Do not use the real path when resolving modules. If unset then will default to `true` if
5656
* NodeJS option --preserve-symlinks is set.
@@ -128,6 +128,10 @@ export declare enum InlineStyleLanguage {
128128
Sass = "sass",
129129
Scss = "scss"
130130
}
131+
/**
132+
* Polyfills to be included in the build.
133+
*/
134+
export declare type Polyfills = string[] | string;
131135
export declare type ScriptElement = ScriptClass | string;
132136
export interface ScriptClass {
133137
/**

0 commit comments

Comments
 (0)