@angular-devkit/build-webpack 0.1800.3 → 0.1801.0-next.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.1800.3",
3
+ "version": "0.1801.0-next.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.1800.3",
19
+ "@angular-devkit/architect": "0.1801.0-next.1",
20
20
  "rxjs": "7.8.1"
21
21
  },
22
22
  "peerDependencies": {
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.runWebpack = void 0;
13
+ exports.runWebpack = runWebpack;
14
14
  const architect_1 = require("@angular-devkit/architect");
15
15
  const path_1 = require("path");
16
16
  const rxjs_1 = require("rxjs");
@@ -86,7 +86,6 @@ function runWebpack(config, context, options = {}) {
86
86
  }
87
87
  })));
88
88
  }
89
- exports.runWebpack = runWebpack;
90
89
  exports.default = (0, architect_1.createBuilder)((options, context) => {
91
90
  const configPath = (0, path_1.resolve)(context.workspaceRoot, options.webpackConfig);
92
91
  return (0, rxjs_1.from)((0, utils_1.getWebpackConfig)(configPath)).pipe((0, rxjs_1.switchMap)((config) => runWebpack(config, context)));
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.runWebpackDevServer = void 0;
13
+ exports.runWebpackDevServer = runWebpackDevServer;
14
14
  const architect_1 = require("@angular-devkit/architect");
15
15
  const path_1 = require("path");
16
16
  const rxjs_1 = require("rxjs");
@@ -85,7 +85,6 @@ function runWebpackDevServer(config, context, options = {}) {
85
85
  };
86
86
  })));
87
87
  }
88
- exports.runWebpackDevServer = runWebpackDevServer;
89
88
  exports.default = (0, architect_1.createBuilder)((options, context) => {
90
89
  const configPath = (0, path_1.resolve)(context.workspaceRoot, options.webpackConfig);
91
90
  return (0, rxjs_1.from)((0, utils_1.getWebpackConfig)(configPath)).pipe((0, rxjs_1.switchMap)((config) => runWebpackDevServer(config, context)));
package/src/utils.js CHANGED
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.getWebpackConfig = exports.getEmittedFiles = void 0;
33
+ exports.getEmittedFiles = getEmittedFiles;
34
+ exports.getWebpackConfig = getWebpackConfig;
34
35
  const fs_1 = require("fs");
35
36
  const path = __importStar(require("path"));
36
37
  const url_1 = require("url");
@@ -63,7 +64,6 @@ function getEmittedFiles(compilation) {
63
64
  }
64
65
  return files;
65
66
  }
66
- exports.getEmittedFiles = getEmittedFiles;
67
67
  /**
68
68
  * This uses a dynamic import to load a module which may be ESM.
69
69
  * CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
@@ -109,4 +109,3 @@ async function getWebpackConfig(configPath) {
109
109
  }
110
110
  }
111
111
  }
112
- exports.getWebpackConfig = getWebpackConfig;