We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b851f57 commit 2c60a51Copy full SHA for 2c60a51
webpack.config.js
@@ -1,11 +1,11 @@
1
-const slsw = require('serverless-webpack');
2
-const nodeExternals = require('webpack-node-externals');
+var slsw = require('serverless-webpack');
+var nodeExternals = require('webpack-node-externals');
3
4
// Add error handling and source map support
5
-const entries = Object.keys(slsw.lib.entries).reduce((acc, key) => ({
6
- ...acc,
7
- [key]: ["./_webpack/include.js", slsw.lib.entries[key]]
8
-}), {});
+var entries = Object.keys(slsw.lib.entries).reduce(function(acc, key) {
+ acc[key] = ["./_webpack/include.js", slsw.lib.entries[key]];
+ return acc;
+}, {});
9
10
module.exports = {
11
entry: entries,
0 commit comments