1408 Commits

Author SHA1 Message Date
Charles Lyding
3d8e474d5d fix(@angular-devkit/build-angular): mark rxjs add imports as having side effects
This change prevents webpack from removing the operator add imports from the rxjs package (for example, `import 'rxjs/add/operator/filter';`).  The entire rxjs package is currently marked as side effect free from within the rxjs `package.json` but the files in the add directory intentionally contain side effects.
2020-07-20 11:48:50 +01:00
Charles Lyding
993b2bd9c7 fix(@angular-devkit/build-angular): avoid ES module assumption for vendor files
This change prevents import statements from being added to commonjs files when downleveling helpers are needed.  These imports would then cause webpack to assume that the file is an ES module and potentially break the commonjs file.

Fixes #18284
2020-07-20 11:48:02 +01:00
Alan Agius
2443fd49bd fix(@angular-devkit/build-angular): flatten child compilation errors and warnings
Closes #18231
2020-07-20 11:47:23 +01:00
Renovate Bot
00e111512f build: update rollup to version 2.22.1 2020-07-20 11:46:43 +01:00
Renovate Bot
65272a93d7 build: update @jsdevtools/coverage-istanbul-loader to version 3.0.5 2020-07-20 11:45:41 +01:00
Renovate Bot
d5847623d9 build: update stylus to version 0.54.8 2020-07-17 09:26:30 +01:00
Renovate Bot
ebdf3fac89 build: update terser-webpack-plugin to version 3.0.7 2020-07-17 09:25:15 +01:00
Alan Agius
2aedad9a9b fix(@angular-devkit/build-angular): suppress warning for CommonJS templateUrl and styleUrl
Currently, when users use either absolute paths, or path mappings in JIT mode, we issue a warning for templateUrl and styleUrl. With this change we suppress those warning.

Closes: #18057
2020-07-15 13:51:00 -04:00
Charles Lyding
872bd48bbf test: update generated tests to not use async helper function 2020-07-15 12:36:48 -04:00
Renovate Bot
7e1122b291 build: update babel packages 2020-07-15 12:28:21 -04:00
Alan Agius
0b206766cf fix(@angular-devkit/build-angular): don't emit empty warnings
Closes #18231
2020-07-13 13:27:50 -04:00
Renovate Bot
bfaa5efb1f build: update @jsdevtools/coverage-istanbul-loader to version 3.0.4 2020-07-13 12:22:17 -04:00
Charles Lyding
c75a48dfcc test(@angular-devkit/build-angular): increase rebuild debounce times
CI performance variability can cause test flakes in rebuild tests due to the rebuilds taking longer than expected.  This change increases the 500ms debounce time for the web worker rebuild tests to 1000ms to mitigate these issues.
2020-07-13 12:17:06 -04:00
Charles Lyding
bcb41e3977 fix(@angular-devkit/build-angular): wrap ES5 differential loading bundles
This change ensures that classic (ES5) script's top-level function helpers do not get overwritten by other scripts top-level functions that happen to have the same name.  This is not an issue when using module script types because each module has its own scope.
2020-07-13 12:16:42 -04:00
Renovate Bot
d1b323f12e build: update autoprefixer to version 9.8.5 2020-07-13 09:36:52 -04:00
Renovate Bot
4987f0ac10 build: update cacache to version 15.0.5 2020-07-13 09:36:42 -04:00
Renovate Bot
b55db8cbee build: update license-webpack-plugin to version 2.3.0 2020-07-13 09:36:16 -04:00
Renovate Bot
2388806756 build: update sass-loader to version 9.0.2 2020-07-08 08:54:39 +02:00
Renovate Bot
8cc3b9d4ee build: update rollup to version 2.21.0 2020-07-08 08:54:18 +02:00
Alan Agius
0a573e7376 fix(@angular-devkit/build-angular): remove non-global locale import warning
We have not yet deprecated the non-global locale data modules (e.g. `@angular/common/locales/fr`) so we should not be issuing warnings about developers using them.

We recently added warning suggesting that a "global" locale should be used instead, and the previous CommonJS/AMD warning about the format of these non-global modules are just confusing for the developer.

Reference: TOOL-1388
Closes: #18123
2020-07-07 08:56:59 +02:00
Renovate Bot
56c06fdc08 build: update sass to version 1.26.10 2020-07-07 08:05:23 +02:00
Renovate Bot
c6092ca0cd build: update rollup to version 2.20.0 2020-07-07 08:04:39 +02:00
Renovate Bot
1bd85f0069 build: update ajv to version 6.12.3 2020-07-05 10:04:19 +02:00
Renovate Bot
a76e775e78 build: update rollup to version 2.19.0 2020-07-05 10:03:53 +02:00
Renovate Bot
512f4b08d3 build: update sass-loader to version 9.0.1 2020-07-04 09:56:50 +02:00
Renovate Bot
56fc03a89e build: update less-loader to version 6.2.0 2020-07-04 09:28:56 +02:00
Alan Agius
64a2686293 fix(@angular-devkit/build-angular): show child compilation errors
Closes #17565
2020-07-03 09:42:24 +02:00
Renovate Bot
7dfa252002 build: update sass-loader to version 9.0.0 2020-07-03 09:32:12 +02:00
Renovate Bot
51a159d1c9 build: update rxjs to version 6.6.0 2020-07-02 11:00:00 +02:00
Renovate Bot
c3e66291a3 build: update rollup to version 2.18.2 2020-07-02 10:07:18 +02:00
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