refactor: convert function expression to arrow function (#181)

Just a few cases of converting a traditional function to ES6 arrow functions. Pure refactoring.
This commit is contained in:
Cosmin Radoi 2018-07-22 23:29:56 -07:00 committed by Shahidh K Muhammed
parent 9081a27259
commit 453f7d8b7f

View File

@ -53,7 +53,7 @@ module.exports = {
style_modules: {
extensions: ['scss'],
filter: function(module, regex, options, log) {
filter: (module, regex, options, log) => {
if (options.development) {
// in development mode there's webpack "style-loader",
// so the module.name is not equal to module.name
@ -69,7 +69,7 @@ module.exports = {
return regex.test(module.name);
}
},
path: function(module, options, log) {
path: (module, options, log) => {
if (options.development) {
// in development mode there's webpack "style-loader",
// so the module.name is not equal to module.name
@ -84,7 +84,7 @@ module.exports = {
return module.name;
}
},
parser: function(module, options, log) {
parser: (module, options, log) => {
if (options.development) {
return WebpackIsomorphicToolsPlugin.css_modules_loader_parser(
module,