In some cases, where a module imports a dependency but does not actually use it, UMD bundlers may remove the dependency parameter from the UMD factory function definition. For example: ``` import * as x from 'x'; import * as z from 'z'; export const y = x; ``` may result in a UMD bundle including: ``` (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('x'), require('z')) : typeof define === 'function' && define.amd ? define(['exports', 'x', 'z'], factory) : (global = global || self, factory(global.myBundle = {}, global.x)); }(this, (function (exports, x) { 'use strict'; ... }))); ``` Note that while the `z` dependency is provide in the call, the factory itself only accepts `exports` and `x` as parameters. Previously ngcc appended new dependencies to the end of the factory function, but this breaks in the above scenario. Now the new dependencies are prefixed at the front of parameters/arguments already in place. Fixes #34653 PR Close #34660
build: migrate references and scripts that set to build with ivy via compile=aot to use config=ivy (#33983)
Angular
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Description
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%