Skip to content

Commit

Permalink
fix(server): createPreprocessor was removed (#3435)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Deprecated createPreprocessor removed, karma-browserify < 7 version doesn't work
  • Loading branch information
anthony-redFox authored Mar 16, 2020
1 parent d7128d4 commit 5c334f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
9 changes: 0 additions & 9 deletions lib/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,5 @@ function createPriorityPreprocessor (config = {}, preprocessorPriority, basePath
}
}

// Deprecated API
function createPreprocessor (preprocessors, basePath, injector) {
console.log('Deprecated private createPreprocessor() API')
const preprocessorPriority = injector.get('config.preprocessor_priority')
return createPriorityPreprocessor(preprocessors, preprocessorPriority, basePath, injector)
}
createPreprocessor.$inject = ['config.preprocessors', 'config.basePath', 'injector']
exports.createPreprocessor = createPreprocessor

createPriorityPreprocessor.$inject = ['config.preprocessors', 'config.preprocessor_priority', 'config.basePath', 'injector']
exports.createPriorityPreprocessor = createPriorityPreprocessor
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
"http2": "^3.3.6",
"husky": "^4.0.3",
"jasmine-core": "^3.4.0",
"karma-browserify": "^6.0.0",
"karma-browserify": "^7.0.0",
"karma-browserstack-launcher": "^1.5.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
Expand Down

0 comments on commit 5c334f5

Please sign in to comment.