Skip to content

Commit

Permalink
docs: add breaking change note about calling scheduleBuilder with `…
Browse files Browse the repository at this point in the history
…@angular-devkit/build-angular`

closes #22152

(cherry picked from commit 25e761b)
  • Loading branch information
Platonn authored and filipesilva committed Nov 17, 2021
1 parent 9fc5af8 commit 1eee1e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ npm install classlist.js web-animations-js --save
}
```

- Calling `BuilderContext.scheduleBuilder()` with a builder from `@angular-devkit/build-angular` now requires passing the `target` property in the 3rd argument, like in the following example:

```typescript
context.scheduleBuilder('@angular-devkit/build-angular:ng-packagr', options, {
target: context.target,
});
```

- The automatic inclusion of Angular-required ES2015 polyfills to support ES5 browsers has been removed. Previously when targetting ES5 within the application's TypeScript configuration or listing an ES5 requiring browser in the browserslist file, Angular-required polyfills were included in the built application. However, with Angular no longer supporting IE11, there are now no browsers officially supported by Angular that would require these polyfills. As a result, the automatic inclusion of these ES2015 polyfills has been removed. Any polyfills manually added to an application's code are not affected by this change.

- With this change a number of deprecated dev-server builder options which proxied to the browser builder have been removed. These options should be configured in the browser builder instead.
Expand Down

0 comments on commit 1eee1e7

Please sign in to comment.