1178 Commits

Author SHA1 Message Date
Alan Agius
c578c73575 fix(@angular-devkit/build-angular): show warning when using non global locale data
When using the `localize` option directly importing locale data from `@angular/common` is not needed because the Angular CLI  will automatically include locale data. When not using the `localize` option, most likely users meant to import the global variant of the local data.

See: https://angular.io/guide/i18n#import-global-variants-of-the-locale-data
2020-07-01 14:04:05 +01:00
Alan Agius
708360e267 fix(@angular-devkit/build-angular): match allowed dependencies against the package name
With this change we add the functionality to also match an allowed dependency against a package name. The package name is retrieved from the rawRequest.

Previously, users needed to add the request path which in some case might be a deep import. Ex: `zone.js/dist/zone-error`. With this change adding the package name example `zone.js` will suffice.

Closes: #18058
2020-07-01 14:04:05 +01:00
Charles Lyding
78064a8c26 fix(@angular-devkit/build-angular): update copy-webpack-plugin to 6.0.3
Prior versions of copy-webpack-plugin 6.x contained a memory usage regression that could cause gigabytes of memory to be used during a build.  Version 6.0.3 contains a fix that prevents this issue.
Referenced Issue: https://github.com/webpack-contrib/copy-webpack-plugin/issues/505
2020-07-01 14:03:18 +01:00
Renovate Bot
473e6084d3 build: update source-map-loader to version 1.0.1 2020-07-01 14:02:56 +01:00
Renovate Bot
96d9de8a84 build: update less-loader to version 6.1.3 2020-06-30 15:33:59 +01:00
Alan Agius
9efc3cd1cd fix(@angular-devkit/build-angular): don't dedupe linked modules
Closes #18021
2020-06-29 11:09:39 +01:00
Alan Agius
6547d15f23 fix(@angular-devkit/build-angular): don't dedupe modules without a name or version
We should not try to dedupe secondary entrypoints, or modules which don't have a name and a version.

Closes #17967
2020-06-29 11:09:39 +01:00
Alan Agius
8442cbf0aa fix(@angular-devkit/build-angular): emit formatted stats.json file 2020-06-29 11:09:20 +01:00
Renovate Bot
0636e07992 build: update rollup to version 2.18.1 2020-06-29 11:08:02 +01:00
Alan Agius
f66c4bd2b9 docs(@angular-devkit/build-angular): update link for commonjs warning 2020-06-24 15:22:59 -04:00
Renovate Bot
a7bd7aed45 build: update autoprefixer to version 9.8.4 2020-06-24 14:43:36 -04:00
Charles Lyding
3af3281e05 test(@angular-devkit/build-angular): use async expect in asset tests 2020-06-24 14:42:08 -04:00
Charles Lyding
3c734a89e1 fix(@angular-devkit/build-angular): use copy-on-write asset processing for non-watch builds
Optimized asset processing was only being performed when differential loading was enabled.  This change ensures that the optimized approach is used for non-watch builds.  This does not affect `ng serve` usage since it currently requires all application files to be in memory.
2020-06-24 14:42:08 -04:00
Renovate Bot
b403cf2e33 build: update jest-worker to version 26.1.0 2020-06-24 14:41:19 -04:00
Renovate Bot
287f7d325d build: update less-loader to version 6.1.2 2020-06-23 08:45:14 -04:00
Renovate Bot
ae9b16ea1a build: update sass to version 1.26.9 2020-06-23 08:45:03 -04:00
Renovate Bot
40dfa4040b build: update autoprefixer to version 9.8.2 2020-06-22 12:13:06 -04:00
Renovate Bot
46ce6c4d5e build: update rollup to version 2.18.0 2020-06-22 12:12:30 -04:00
Renovate Bot
a5b35de377 build: update rollup to version 2.17.1 2020-06-19 15:28:51 -04:00
Renovate Bot
fe567ed4a7 build: update terser-webpack-plugin to version 3.0.6 2020-06-19 15:28:33 -04:00
Renovate Bot
e629da2557 build: update rollup to version 2.17.0 2020-06-18 12:51:51 -04:00
Renovate Bot
4cd9acfa7b build: update terser to version 4.8.0 2020-06-17 08:02:42 +02:00
Renovate Bot
6c37f39f83 build: update terser-webpack-plugin to version 3.0.5 2020-06-16 09:34:30 +02:00
Renovate Bot
48b1e1b7ff build: update rollup to version 2.16.1 2020-06-14 11:12:03 +02:00
Renovate Bot
0eaee466b1 build: update css-loader to version 3.6.0 2020-06-13 19:47:11 +02:00
Renovate Bot
b7af0e6898 build: update terser-webpack-plugin to version 3.0.4 2020-06-13 19:46:36 +02:00
Renovate Bot
dd16530592 build: update rollup to version 2.16.0 2020-06-13 14:37:26 +02:00
Renovate Bot
54b809d8fc build: update less-loader to version 6.1.1 2020-06-12 08:30:35 +02:00
Alan Agius
0fe0da3148 fix(@angular-devkit/build-angular): disable CSS calc optimizations
Disable `calc` optimizations due to several issues.

Closes #16910 closes #16875 and closes #17890
2020-06-10 10:20:30 +01:00
Alan Agius
01a0f1fce8 fix(@angular-devkit/build-angular): update copy-webpack-plugin to version 6
Fixes #17858
2020-06-09 11:36:40 +01:00
Renovate Bot
7920380dab build: update rollup to version 2.15.0 2020-06-08 09:30:45 +01:00
Renovate Bot
b3f84cc518 build: update sass to version 1.26.8 2020-06-05 13:40:48 +01:00
Renovate Bot
b065f7e2b4 build: update terser-webpack-plugin to version 3.0.3 2020-06-05 13:40:17 +01:00
Renovate Bot
522c05687e build: update rollup to version 2.13.1 2020-06-05 13:39:16 +01:00
Renovate Bot
63d0395144 build: update cacache to version 15.0.4 2020-06-03 15:10:39 -04:00
Renovate Bot
48b656bc87 build: update postcss to version 7.0.32 2020-06-03 15:10:29 -04:00
Renovate Bot
b1fbdbfa29 build: update rollup to version 2.12.1 2020-06-03 15:10:17 -04:00
Alan Agius
d50a2fef2f fix(@schematics/angular): use ES2016 as syntax target for server bundles
The supported versions of Node.js support up to ES2018, the only reason why we don't use ES2017+ is because native `async` and `await` don't work with zone.js

See: https://github.com/angular/angular/issues/31730

With this change, we also ensure that we don't downlevel the server bundle to ES5 which is unnecessary.

Closes: #17794
2020-06-01 14:53:37 -04:00
Alan Agius
a01e32c7eb refactor(@angular-devkit/build-angular): clean up SingleTestTransformLoader
Minor cleanup of SingleTestTransformLoader and fix interface issue which causes  #17823 to be red.
2020-06-01 14:52:01 -04:00
Renovate Bot
22b9cc028c build: update rollup to version 2.12.0 2020-06-01 09:06:24 -04:00
Renovate Bot
fdfea58223 build: update babel packages 2020-06-01 09:06:04 -04:00
Renovate Bot
da47e3ffa8 build: update sass to version 1.26.7 2020-05-29 06:55:56 -04:00
cexbrayat
03fc4aff00 refactor(@angular-devkit/build-angular): mention how to disable the warning for commonjs dependencies
The current message clearly mentions which dependencies are CommonJS ones, but doesn't point out how to get rid of the warning if nothing can be done. This commit adds a mention of `allowedCommonJsDependencies` in the warning to help developers (as we do for `versionMismatch` for example).
2020-05-28 15:03:37 -04:00
Renovate Bot
f172379846 build: update rollup to version 2.11.2 2020-05-28 12:15:27 -04:00
Renovate Bot
a03818f6e1 build: update terser-webpack-plugin to version 3.0.2 2020-05-27 20:04:33 +02:00
Alan Agius
ade3f491fe fix(@schematics/angular): remove node typings from tsconfig.spec.json 2020-05-27 14:17:05 +02:00
Renovate Bot
19021f1ad9 build: update source-map-loader to version 1.0.0 2020-05-27 13:46:37 +02:00
Renovate Bot
27d1200b18 build: update postcss to version 7.0.31 2020-05-26 10:54:14 +02:00
Renovate Bot
e8e8d966b0 build: update rollup to version 2.10.9 2020-05-25 12:23:52 +02:00
Renovate Bot
b02aabc705 build: update rollup to version 2.10.8 2020-05-23 13:27:10 +02:00