Skip to content

Commit d0fad69

Browse files
authoredApr 12, 2021
docs: add more information on config.preprocessor_priority (#3673)
Ported from karma-runner/karma-runner.github.com#55
1 parent 5176aff commit d0fad69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎docs/config/04-preprocessors.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ preprocessors: {
108108

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

111-
If a file matches multiple keys, karma will use the `config.preprocessor_priority`
112-
map to set the order. If this config option is not set, karma do its best to
113-
execute the preprocessors in a reasonable order. So if you have:
111+
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.
112+
113+
If this config option is not set, karma will do its best to execute the preprocessors in a reasonable order. So if you have:
114114

115115
```js
116116
preprocessors: {

0 commit comments

Comments
 (0)
Please sign in to comment.