@angular-devkit/build-webpack 0.1902.11 → 0.1902.12

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/utils.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-webpack",
3
- "version": "0.1902.11",
3
+ "version": "0.1902.12",
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.1902.11",
19
+ "@angular-devkit/architect": "0.1902.12",
20
20
  "rxjs": "7.8.1"
21
21
  },
22
22
  "peerDependencies": {
package/src/utils.js CHANGED
@@ -108,7 +108,8 @@ async function getWebpackConfig(configPath) {
108
108
  return require(configPath);
109
109
  }
110
110
  catch (e) {
111
- if (e.code === 'ERR_REQUIRE_ESM') {
111
+ if (e.code === 'ERR_REQUIRE_ESM' ||
112
+ e.code === 'ERR_REQUIRE_ASYNC_MODULE') {
112
113
  // Load the ESM configuration file using the TypeScript dynamic import workaround.
113
114
  // Once TypeScript provides support for keeping the dynamic import this workaround can be
114
115
  // changed to a direct dynamic import.