Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(preprocessor): preprocessor_priority execution order. #3303

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

johnjbarton
Copy link
Contributor

Between 3.x and 4.x we moved from combineLists to underscore.union in preprocessor.
Apparently combineLists was incorrect: the order of preprocessing changed in some cases.
Conceptually the order ought to depend upon the preprocessor, not the file.

Implement config.preprocessor_priority['preprocessor-name'] = priority, higher means run earlier.
Default priority is 0.

Check that your description matches the automatic change-log format:
http://karma-runner.github.io/latest/dev/git-commit-msg.html
then delete this reminder.

@johnjbarton johnjbarton requested a review from kyliau April 30, 2019 21:43
@johnjbarton johnjbarton closed this Jun 4, 2019
@johnjbarton johnjbarton reopened this Jun 4, 2019
@johnjbarton johnjbarton force-pushed the preprocessor-priority branch from 7c65eb8 to 24dfb97 Compare July 12, 2019 16:31
@johnjbarton johnjbarton force-pushed the preprocessor-priority branch 2 times, most recently from dc9cd1e to a6002c3 Compare August 2, 2019 23:22
@johnjbarton johnjbarton force-pushed the preprocessor-priority branch from a6002c3 to 8894fbc Compare August 14, 2019 00:00
Between 3.x and 4.x we moved from combineLists to underscore.union in preprocessor.
Apparently combineLists was incorrect: the order of preprocessing changed in some cases.
Conceptually the order ought to depend upon the preprocessor, not the file.

Implement config.preprocessor_priority['preprocessor-name'] = priority, higher means run earlier.
Default priority is 0.

Add back compat API for karma-browserify.
Update docs.
@johnjbarton johnjbarton force-pushed the preprocessor-priority branch from 8894fbc to 2812c6f Compare August 20, 2019 17:25
@johnjbarton
Copy link
Contributor Author

PTAL, now the tests pass and I've squashed the commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants