Skip to content

Commit

Permalink
Removing spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed Sep 22, 2017
1 parent b851f57 commit 2c60a51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const slsw = require('serverless-webpack');
const nodeExternals = require('webpack-node-externals');
var slsw = require('serverless-webpack');
var nodeExternals = require('webpack-node-externals');

// Add error handling and source map support
const entries = Object.keys(slsw.lib.entries).reduce((acc, key) => ({
...acc,
[key]: ["./_webpack/include.js", slsw.lib.entries[key]]
}), {});
var entries = Object.keys(slsw.lib.entries).reduce(function(acc, key) {
acc[key] = ["./_webpack/include.js", slsw.lib.entries[key]];
return acc;
}, {});

module.exports = {
entry: entries,
Expand Down

0 comments on commit 2c60a51

Please sign in to comment.