@angular-builders/custom-webpack 20.0.0-beta.0 → 20.0.1-beta.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/README.md +24 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -240,6 +240,30 @@ Builder options:
|
|
|
240
240
|
}
|
|
241
241
|
```
|
|
242
242
|
|
|
243
|
+
External `karma.conf.js` configuration:
|
|
244
|
+
|
|
245
|
+
Starting with Angular v20, generating an [external karma config](https://angular.dev/guide/testing#configuration) will cause tests to hang while utilizing `@angular-builders/custom-webpack:karma`.
|
|
246
|
+
|
|
247
|
+
Fix this by:
|
|
248
|
+
- adding `'@angular-devkit/build-angular'` to the `frameworks` array
|
|
249
|
+
- adding `'@angular-devkit/build-angular/plugins/karma'` to the `plugins` array
|
|
250
|
+
|
|
251
|
+
`karma.conf.js` example:
|
|
252
|
+
```js
|
|
253
|
+
module.exports = function (config) {
|
|
254
|
+
config.set({
|
|
255
|
+
basePath: '',
|
|
256
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
257
|
+
plugins: [
|
|
258
|
+
require('karma-jasmine'),
|
|
259
|
+
require('karma-chrome-launcher'),
|
|
260
|
+
require('karma-jasmine-html-reporter'),
|
|
261
|
+
require('karma-coverage'),
|
|
262
|
+
require('@angular-devkit/build-angular/plugins/karma'),
|
|
263
|
+
],
|
|
264
|
+
// ...
|
|
265
|
+
```
|
|
266
|
+
|
|
243
267
|
## Custom Webpack `extract-i18n`
|
|
244
268
|
|
|
245
269
|
Enhanced `@angular-devkit/build-angular:extract-i18n` builder that leverages the custom webpack builder to get webpack configuration.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-builders/custom-webpack",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.1-beta.0",
|
|
4
4
|
"description": "Custom webpack builders for Angular build facade. Allow to modify Angular build configuration without ejecting it",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"builders": "builders.json",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@angular-builders/common": "4.0.0
|
|
43
|
+
"@angular-builders/common": "4.0.0",
|
|
44
44
|
"@angular-devkit/architect": ">=0.2000.0 < 0.2100.0",
|
|
45
45
|
"@angular-devkit/build-angular": "^20.0.0",
|
|
46
46
|
"@angular-devkit/core": "^20.0.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"ts-node": "^10.0.0",
|
|
58
58
|
"typescript": "5.8.3"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "ae2a34f027ca8bd48ef6929f0bfa49ab560cce71"
|
|
61
61
|
}
|