Skip to content

Commit

Permalink
docs: add more information on config.preprocessor_priority (karma-r…
Browse files Browse the repository at this point in the history
  • Loading branch information
devoto13 authored and anthony-redFox committed May 5, 2023
1 parent 5be1dd8 commit 02289f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/config/04-preprocessors.md
Expand Up @@ -108,9 +108,9 @@ preprocessors: {

Then karma will execute `'a'` before executing `'b'`.

If a file matches multiple keys, karma will use the `config.preprocessor_priority`
map to set the order. If this config option is not set, karma do its best to
execute the preprocessors in a reasonable order. So if you have:
If a file matches multiple keys, karma will use the `config.preprocessor_priority` map to control the execution order. The `config.preprocessor_priority` should be an object with property names equal to the preprocessor names and property values equal to the priority of execution. Higher priority preprocessors are run earlier. The default priority is 0.

If this config option is not set, karma will do its best to execute the preprocessors in a reasonable order. So if you have:

```js
preprocessors: {
Expand Down

0 comments on commit 02289f8

Please sign in to comment.