Open YeomDongUk opened 1 year ago
plugins: - serverless-auto-swagger - serverless-webpack - serverless-offline
const path = require('path'); module.exports = { entry: './src/handler.ts', target: 'node', mode: 'none', externals: [/aws-sdk/], / module: { rules: [ { test: /\.ts$/, use: ['ts-loader'], exclude: /node_modules/, }, ], }, resolve: { extensions: ['.mjs', '.json', '.ts', '.js'], symlinks: false, cacheWithContext: false, }, output: { libraryTarget: 'commonjs', path: path.join(__dirname, '.webpack'), filename: 'handler.js', }, };