@angular-devkit/build-webpack 0.2000.0-next.9 → 0.2000.0-rc.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 +4 -4
- 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.2000.0-
|
3
|
+
"version": "0.2000.0-rc.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.2000.0-
|
19
|
+
"@angular-devkit/architect": "0.2000.0-rc.1",
|
20
20
|
"rxjs": "7.8.2"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
@@ -34,9 +34,9 @@
|
|
34
34
|
"type": "git",
|
35
35
|
"url": "https://github.com/angular/angular-cli.git"
|
36
36
|
},
|
37
|
-
"packageManager": "pnpm@9.15.
|
37
|
+
"packageManager": "pnpm@9.15.9",
|
38
38
|
"engines": {
|
39
|
-
"node": "^20.11.1 ||
|
39
|
+
"node": "^20.11.1 || ^22.11.0 || >=24.0.0",
|
40
40
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
41
41
|
"yarn": ">= 1.13.0"
|
42
42
|
},
|
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.
|