Passed
Push — master ( dd1232...b80cf4 )
by Zhenyu
01:09
created

webpack.config.js (1 issue)

Labels
Severity
1
const nodeExternals = require('webpack-node-externals');
2
const slsw = require('serverless-webpack');
3
const path = require('path');
4
5
module.exports = {
6
	entry: slsw.lib.entries,
7
	mode: slsw.lib.webpack.isLocal ? 'development' : 'production',
8
	target: 'node',
9
	externals: [nodeExternals()],
10
	resolve: {
11
		modules: [path.resolve('./src'), 'node_modules'],
12
	},
13
	module: {
14
		rules: [
15
			{
16
				enforce: 'pre',
17
				test: /\.js$/,
18
				exclude: /node_modules/,
19
				loader: 'eslint-loader',
20
				options: {
21
					fix: true,
22
				},
23
			},
24
			{
25
				test: /\.js$/,
26
				exclude: /node_modules/,
27
				use: 'babel-loader',
28
			},
0 ignored issues
show
The variable seems to be never declared. If this is a global, consider adding a /** global: */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
29
		],
30
	},
31
};
32