Skip to content

Commit ae1c8eb

Browse files
author
anh.pham
committed
docs(devs-infra): update docs for processWithEsbuild
1 parent b58d089 commit ae1c8eb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

website/docs/getting-started/options.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,23 @@ moduleNameMapper: {
2222
}
2323
```
2424

25+
### Processing with esbuild
26+
27+
Since **v11.0.0**, `jest-preset-angular` introduced the usage of `esbuild` to process files besides TypeScript API. By default, all `.mjs` files
28+
will be processed by `esbuild` in `jest-preset-angular`. To configure extra files to process with `esbuild`, one can do the following:
29+
30+
```js
31+
// jest.config.js
32+
module.exports = {
33+
//...
34+
globals: {
35+
ngJest: {
36+
processWithEsbuild: [<glob_to_files>],
37+
},
38+
},
39+
}
40+
```
41+
2542
:::
2643

2744
### Exposed configuration

0 commit comments

Comments
 (0)