-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.ts
37 lines (35 loc) · 948 Bytes
/
webpack.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import path from 'path';
import { Configuration } from 'webpack';
const config: Configuration = {
mode: 'production',
entry: {
'sqs-event-listener-lambda':'./src/sqs-event-listener-lambda.ts',
's3-messages-retrieval-lambda':'./src/s3-messages-retrieval-lambda.ts',
'aurora-message-ingestion-lambda':'./src/aurora-message-ingestion-lambda.ts'
},
devtool: 'inline-source-map',
plugins: [],
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: [/node_modules/, /bin/]
}
]
},
resolve: {
extensions: ['.tsx', '.ts', '.js']
},
externals: [
'aws-sdk',
'aws-xray-sdk'
],
target: 'node',
output: {
filename: '[name]/index.js',
libraryTarget: 'commonjs',
path: path.resolve(__dirname, 'build')
}
};
export default config;