mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-11-10 18:50:52 +03:00
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:
parent
9081a27259
commit
453f7d8b7f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user