549 Commits

Author SHA1 Message Date
Renovate Bot
eb733a6005 build: update terser to version 4.1.4 (#15300) 2019-08-12 10:27:40 -07:00
Renovate Bot
65ac48ce70 build: update webpack-dev-server to version 3.8.0 (#15297) 2019-08-12 10:27:05 -07:00
Renovate Bot
125d5d6465 build: update sass-loader to version 7.2.0 (#15285) 2019-08-12 10:24:38 -07:00
Renovate Bot
e4432aac74 build: update circular-dependency-plugin to version 5.2.0 (#15281) 2019-08-12 10:22:47 -07:00
Alan Agius
0111693271 Ivy build_ng_packagr (#15262)
* test: update ng-packagr builder tests to work on Windows

* build: add ng packagr test large for ivy

* test: fix web-worker test in ivy

Previously, we were not testing web workers under Ivy as we were overriding tsconfig.app.json entirely without including enableIvy.

When enabling Ivy we are getting warning of files that are part of the compilation which causing a warning to show and break the test.

* build: update ng-packagr to `^5.4.0`

* test: display ivy mode message once
2019-08-12 10:20:02 -07:00
Alan Agius
99ba5ebaf7 feat(@ngtools/webpack): add support for raw-loader 2 and 3 (#15311)
With this change we add support for raw-loader 1, 2 and 3.

In version 2 raw-loader released a breaking change https://github.com/webpack-contrib/raw-loader/releases/tag/v2.0.0 and now they use ES Module export instead of CommonJS.

Closes #15286 and closes #15149
2019-08-12 10:19:11 -07:00
Renovate Bot
32449fc56a build: update webpack to version 4.39.1 (#15229) 2019-08-10 10:15:53 -07:00
Renovate Bot
38088d1c58 build: update file-loader to version 4.2.0 2019-08-08 08:27:52 -07:00
Renovate Bot
d54b767a83 build: update style-loader to version 1.0.0 2019-08-08 08:27:01 -07:00
Renovate Bot
44f9141a56 build: update webpack-sources to version 1.4.3 2019-08-08 08:26:45 -07:00
Renovate Bot
678846fe85 build: update caniuse-lite to version 1.0.30000989 2019-08-08 08:26:26 -07:00
Charles Lyding
1c6f665c4f feat(@angular-devkit/build-angular): implement bundle level downleveling to support differential loading 2019-08-08 08:26:15 -07:00
Charles Lyding
4183d16e81 fix(@angular-devkit/build-angular): additional ES5 browser polyfills based on babel usage analysis 2019-08-08 08:26:15 -07:00
Alan Agius
9478ee9c47 fix(@ngtools/webpack): gracefully show error when compiling broken component styles
Fixes #15240
2019-08-05 18:01:53 -07:00
Alan Agius
f4be0ba677 fix(@ngtools/webpack): display unused file warning once per file 2019-08-05 18:00:13 -07:00
Filipe Silva
fbea65b371 fix(@angular-devkit/build-angular): use GLOBAL_DEFS_FOR_TERSER_WITH_AOT if present
Fix #15206
2019-08-05 17:59:42 -07:00
Alan Agius
195e493a66 fix(@angular-devkit/build-angular): various breakpoints issues
With this change we address 2 main issues related to unbound breakpoints:
1) in VS code when having a `baseHref` set.
2) Visual Studio when using an SPA inside a ASP.NET project

For the latter, it seems that there is no way to set a `webRoot`. However, `webpack:///` seems to be handled internally and will be mapped to the `SpaRoot` ie `ClientApp` folder.

Fixes: #15211
2019-08-02 13:41:16 -07:00
Alan Agius
0fd7abb818 refactor: cleancss-webpack-plugin to use async/await 2019-08-02 13:35:22 -07:00
Renovate Bot
16f490b673 build: update terser-webpack-plugin to version 1.4.1 2019-08-02 13:35:09 -07:00
Renovate Bot
bf47da3065 build: update webpack-sources to version 1.4.1 2019-07-31 13:27:14 -07:00
Renovate Bot
f3f9516c5f build: update source-map-support to version 0.5.13 2019-07-31 13:27:01 -07:00
Renovate Bot
f28822b819 build: update caniuse-lite to version 1.0.30000988 2019-07-31 13:26:49 -07:00
Alan Agius
f7c7619556 fix(@angular-devkit/build-angular): escape dot in js extensions to match literally
Closes #15195
2019-07-30 14:25:21 -07:00
Renovate Bot
e1c616b0f6 build: update caniuse-lite to version 1.0.30000987 2019-07-30 14:24:14 -07:00
Renovate Bot
8d5f94f13c build: update sass to version 1.22.9 2019-07-30 14:23:52 -07:00
Renovate Bot
36e7f02000 build: update karma-coverage-istanbul-reporter to version ~2.1.0 2019-07-30 14:23:20 -07:00
Alan Agius
607e6f7cfd test: increase/add debounceTime to reduce flakiness 2019-07-29 15:06:10 -07:00
Renovate Bot
d1a2527569 build: update caniuse-lite to version 1.0.30000986 2019-07-29 10:54:25 -07:00
Filipe Silva
e8dff5718f build: update to TS 3.5 2019-07-29 10:15:23 -07:00
Renovate Bot
b4c441e790 build: update webpack to version 4.38.0 2019-07-26 13:30:11 -07:00
Renovate Bot
78a50ad328 build: update copy-webpack-plugin to version 5.0.4 2019-07-26 13:29:44 -07:00
Alan Agius
50b290e9f0 fix(@angular-devkit/build-angular): rollback sass to version 1.22.7
sass version `1.22.8` was rolled back and is no longer available on NPM
2019-07-25 09:58:11 -07:00
vikerman
07780b9272 style: clean up existing lint errors 2019-07-24 23:28:49 -07:00
Renovate Bot
79f5298391 build: update semver to version 6.3.0 2019-07-24 19:07:57 -07:00
Alan
6649483d86 fix(@ngtools/webpack): delete all virtual files for styles on change
Fixes #15143
2019-07-24 19:07:10 -07:00
Alan Agius
15ef15e94a style: remove redundant max-line-length disables and fix other lint issues 2019-07-24 19:06:21 -07:00
Renovate Bot
52741b43f6 build: update caniuse-lite to version 1.0.30000985 2019-07-24 19:05:59 -07:00
Alan
0224d2b92e fix(@angular-devkit/build-angular): fix sourcemaps for vscode breakpoints
`namespace` is always empty which is breaking sourcemaps since when sources start with `/` vscode will not be able to resolve them unless users configure `sourceMapPathOverrides`.

Fixes #15116
2019-07-24 19:05:43 -07:00
Alan
bcf250c94d feat(@angular-devkit/build-angular): add bundle budget for component styles
It’s very easy to inadvertently import toplevel css in component styles. Since component css is standalone and self-contained, it will never be shared between components and remains as a single large bundle for each component. This in turn adds a large amount of code that must be processed and increases bundle size.

Related to: TOOL-949
2019-07-24 19:05:00 -07:00
Alan
28bd5493a7 fix(@ngtools/webpack): retain child compilation warnings and errors
At the moment child compilation warnings and errors are being lost as they are not passed to the root compilation.  This means that any errors that are being set by clean-css for component styles are being lost.
2019-07-24 19:05:00 -07:00
Renovate Bot
21cd079e76 build: update file-loader to version 4.1.0 2019-07-24 19:04:46 -07:00
Alan Agius
4f8e349033 fix(@angular-devkit/build-angular): only add module script types to actual module scripts
Fixes #15102
2019-07-24 19:04:31 -07:00
Renovate Bot
f796e45439 build: update webpack to version 4.37.0 2019-07-24 19:04:17 -07:00
Renovate Bot
78acd2aeed build: update sass to version 1.22.8 2019-07-24 19:04:02 -07:00
Alan Agius
63f0049e43 feat(@ngtools/webpack): show warning when a TS compilations contains unused files
When a tsconfig without `includes` or `files` all files under the `rootDir` will be included in the compilation. This results in redundant files to inserted as part of the ts compilation which in some cases might reduce the compilation drastically.

Related to: TOOL-949
2019-07-24 19:03:35 -07:00
Charles Lyding
069a18200e fix(@angular-devkit/build-angular): support pnpm with ng serve
Webpack and its development server assume the presence of two node builtins (`events` & `querystring`).  Do to package hoisting npm/yarn will usually place the shims for those two builtins at locations that webpack find them.  This is however not guaranteed nor will it work with pnpm which strictly follows the prescribed dependency tree.
To remedy this, the specific node shims are enabled only for the specific internal webpack files that are used within the development server.  This ensures that the requirements of these files does not pollute the entire application.

Fixes #13680
2019-07-24 19:03:15 -07:00
Renovate Bot
83bd1284db build: update mini-css-extract-plugin to version 0.8.0 (#15098) 2019-07-17 11:07:48 -07:00
Charles
6d4f8a249c test: remove material-design-icons package as a development dependency (#15096)
The package is quite large at 33MB (46MB on disk).  The package is also only used in one test that is already covered by an E2E test.  The E2E test does not require the package to be present for development as the test installs it within a generated project during execution.  This also has the benefit of testing the icons package in a more real world use case; as well as allowing the test to serve as a guide for a user to add the package to their own application.
2019-07-16 14:41:59 -07:00
Alan Agius
0551360035 fix(@schematics/angular): exclusively list the files in tsconfigs (#15030)
* test: update tests to work with new stricter tsconfig file inclusions

* fix(@schematics/angular): exclusively list the files in tsconfigs

With the omission of `includes` or `files` in tsconfig files tsc will pick up all the files under the rootDir and make them as part of the compilation. In certain cases, redundant files will be picked up which will cause a slower compilations.

Related to: TOOL-949
2019-07-16 11:04:29 -07:00
Charles
f8a58213eb feat(@angular-devkit/build-angular): add defer attributes to classic scripts (#15087)
This change synchronizes the behavior of classic scripts and module scripts (`type="module"`).  Module scripts are deferred by default.  Also, certain injected scripts are not considered module scripts even in a ES2015+ build due to the strict mode behavior of module scripts.  Deferring such scripts also ensures consistent execution in those scenarios.
2019-07-16 09:58:19 -07:00