@angular-devkit/build-webpack 0.1901.0-rc.0 → 0.1901.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-webpack",
3
- "version": "0.1901.0-rc.0",
3
+ "version": "0.1901.1",
4
4
  "description": "Webpack Builder for Architect",
5
5
  "experimental": true,
6
6
  "main": "src/index.js",
@@ -16,7 +16,7 @@
16
16
  "./*.js": "./*.js"
17
17
  },
18
18
  "dependencies": {
19
- "@angular-devkit/architect": "0.1901.0-rc.0",
19
+ "@angular-devkit/architect": "0.1901.1",
20
20
  "rxjs": "7.8.1"
21
21
  },
22
22
  "peerDependencies": {
@@ -5,7 +5,8 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
8
+ import { Builder, BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
+ import { json } from '@angular-devkit/core';
9
10
  import { Observable } from 'rxjs';
10
11
  import webpack from 'webpack';
11
12
  import { EmittedFiles } from '../../utils';
@@ -27,5 +28,5 @@ export declare function runWebpack(config: webpack.Configuration, context: Build
27
28
  webpackFactory?: WebpackFactory;
28
29
  shouldProvideStats?: boolean;
29
30
  }): Observable<BuildResult>;
30
- declare const _default: import("../../../../architect/src/internal").Builder<RealWebpackBuilderSchema & import("../../../../core").JsonObject>;
31
- export default _default;
31
+ declare const builder: Builder<WebpackBuilderSchema & json.JsonObject>;
32
+ export default builder;
@@ -86,7 +86,8 @@ function runWebpack(config, context, options = {}) {
86
86
  }
87
87
  })));
88
88
  }
89
- exports.default = (0, architect_1.createBuilder)((options, context) => {
89
+ const builder = (0, architect_1.createBuilder)((options, context) => {
90
90
  const configPath = (0, path_1.resolve)(context.workspaceRoot, options.webpackConfig);
91
91
  return (0, rxjs_1.from)((0, utils_1.getWebpackConfig)(configPath)).pipe((0, rxjs_1.switchMap)((config) => runWebpack(config, context)));
92
92
  });
93
+ exports.default = builder;
@@ -5,7 +5,8 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- import { BuilderContext } from '@angular-devkit/architect';
8
+ import { Builder, BuilderContext } from '@angular-devkit/architect';
9
+ import { json } from '@angular-devkit/core';
9
10
  import { Observable } from 'rxjs';
10
11
  import webpack from 'webpack';
11
12
  import WebpackDevServer from 'webpack-dev-server';
@@ -24,5 +25,5 @@ export declare function runWebpackDevServer(config: webpack.Configuration, conte
24
25
  webpackFactory?: WebpackFactory;
25
26
  webpackDevServerFactory?: WebpackDevServerFactory;
26
27
  }): Observable<DevServerBuildOutput>;
27
- declare const _default: import("../../../../architect/src/internal").Builder<WebpackDevServerBuilderSchema & import("../../../../core").JsonObject>;
28
- export default _default;
28
+ declare const builder: Builder<WebpackDevServerBuilderSchema & json.JsonObject>;
29
+ export default builder;
@@ -85,7 +85,8 @@ function runWebpackDevServer(config, context, options = {}) {
85
85
  };
86
86
  })));
87
87
  }
88
- exports.default = (0, architect_1.createBuilder)((options, context) => {
88
+ const builder = (0, architect_1.createBuilder)((options, context) => {
89
89
  const configPath = (0, path_1.resolve)(context.workspaceRoot, options.webpackConfig);
90
90
  return (0, rxjs_1.from)((0, utils_1.getWebpackConfig)(configPath)).pipe((0, rxjs_1.switchMap)((config) => runWebpackDevServer(config, context)));
91
91
  });
92
+ exports.default = builder;