Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: remove camelcase option
BREAKING CHANGE: remove `camelcase` option, use `camelCase` option instead
  • Loading branch information
alexander-akait committed Jul 4, 2018
commit 871e905567469d5835acc8a5df5b165b4a3b6f4c
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function(content, map) {
var query = loaderUtils.getOptions(this) || {};
var root = query.root;
var moduleMode = query.modules;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because this is a refactor, shouldn't we use const and let instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shellscape also let's do it other PR, when we ship webpack-default in this repo

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

var camelCaseKeys = query.camelCase || query.camelcase;
var camelCaseKeys = query.camelCase;
var sourceMap = query.sourceMap || false;
var resolve = createResolver(query.alias);

Expand Down
2 changes: 1 addition & 1 deletion lib/localsLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function(content) {
var callback = this.async();
var query = loaderUtils.getOptions(this) || {};
var moduleMode = query.modules;
var camelCaseKeys = query.camelCase || query.camelcase;
var camelCaseKeys = query.camelCase;
var resolve = createResolver(query.alias);

processCss(content, null, {
Expand Down