@angular-devkit/build-angular 0.1102.0-rc.1 → 0.1102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "0.1102.0-rc.1",
3
+ "version": "0.1102.0",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "experimental": true,
6
6
  "main": "src/index.js",
7
7
  "typings": "src/index.d.ts",
8
8
  "builders": "builders.json",
9
9
  "dependencies": {
10
- "@angular-devkit/architect": "0.1102.0-rc.1",
11
- "@angular-devkit/build-optimizer": "0.1102.0-rc.1",
12
- "@angular-devkit/build-webpack": "0.1102.0-rc.1",
13
- "@angular-devkit/core": "11.2.0-rc.1",
10
+ "@angular-devkit/architect": "0.1102.0",
11
+ "@angular-devkit/build-optimizer": "0.1102.0",
12
+ "@angular-devkit/build-webpack": "0.1102.0",
13
+ "@angular-devkit/core": "11.2.0",
14
14
  "@babel/core": "7.12.10",
15
15
  "@babel/generator": "7.12.11",
16
16
  "@babel/plugin-transform-async-to-generator": "7.12.1",
@@ -19,7 +19,7 @@
19
19
  "@babel/runtime": "7.12.5",
20
20
  "@babel/template": "7.12.7",
21
21
  "@jsdevtools/coverage-istanbul-loader": "3.0.5",
22
- "@ngtools/webpack": "11.2.0-rc.1",
22
+ "@ngtools/webpack": "11.2.0",
23
23
  "ansi-colors": "4.1.1",
24
24
  "autoprefixer": "10.2.4",
25
25
  "babel-loader": "8.2.2",
@@ -144,6 +144,8 @@ async function execute(options, context, transforms) {
144
144
  scripts: [],
145
145
  styles: [],
146
146
  deleteOutputPath: false,
147
+ extractLicenses: false,
148
+ subresourceIntegrity: false,
147
149
  }, context, (wco) => {
148
150
  var _a;
149
151
  const isIvyApplication = wco.tsConfig.options.enableIvy !== false;
@@ -163,6 +165,7 @@ async function execute(options, context, transforms) {
163
165
  const partials = [
164
166
  { plugins: [new NoEmitPlugin()] },
165
167
  configs_1.getCommonConfig(wco),
168
+ configs_1.getBrowserConfig(wco),
166
169
  // Only use VE extraction if not using Ivy
167
170
  configs_1.getAotConfig(wco, !usingIvy),
168
171
  configs_1.getStatsConfig(wco),
@@ -15,7 +15,7 @@ const path = require("path");
15
15
  const strip_bom_1 = require("../utils/strip-bom");
16
16
  async function _run(options, context) {
17
17
  context.logger.warn(`TSLint's support is discontinued and we're deprecating its support in Angular CLI.\n` +
18
- 'To opt-in using the community driven ESLint builder, see: https://github.com/angular-eslint/angular-eslint#migrating-from-codelyzer-and-tslint.');
18
+ 'To opt-in using the community driven ESLint builder, see: https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslint.');
19
19
  const systemRoot = context.workspaceRoot;
20
20
  process.chdir(context.currentDirectory);
21
21
  const projectName = (context.target && context.target.project) || '<???>';
@@ -146,6 +146,7 @@ function getStylesConfig(wco) {
146
146
  const fullPath = path.join(basePath, tailwindConfigFile);
147
147
  if (fs.existsSync(fullPath)) {
148
148
  tailwindConfigPath = fullPath;
149
+ break;
149
150
  }
150
151
  }
151
152
  // Only load Tailwind CSS plugin if configuration file was found.
@@ -284,7 +284,18 @@ function fallbackMiddleware() {
284
284
  function isPlugin(moduleId, pluginName) {
285
285
  return (plugin) => {
286
286
  if (typeof plugin === 'string') {
287
- return plugin === moduleId;
287
+ if (!plugin.includes('*')) {
288
+ return plugin === moduleId;
289
+ }
290
+ const regexp = new RegExp(`^${plugin.replace('*', '.*')}`);
291
+ if (regexp.test(moduleId)) {
292
+ try {
293
+ require.resolve(moduleId);
294
+ return true;
295
+ }
296
+ catch (_a) { }
297
+ }
298
+ return false;
288
299
  }
289
300
  return pluginName in plugin;
290
301
  };