Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (27 sloc) 745 Bytes
import { TsConfigPathsPlugin } from "awesome-typescript-loader";
import * as path from "path";
import * as slsw from "serverless-webpack";
export default (basePath: string) => ({
entry: slsw.lib.entries,
bail: true,
target: "node",
context: basePath,
node: {
__filename: true,
__dirname: true
},
resolve: {
extensions: [".js", ".json", ".ts", ".tsx"],
plugins: [new TsConfigPathsPlugin()]
},
externals: ["aws-sdk"],
output: {
libraryTarget: "commonjs",
path: path.join(basePath, ".webpack"),
filename: "[name].js"
},
module: {
rules: [{ test: /\.ts(x?)$/, loader: "awesome-typescript-loader" }]
},
devtool: "source-map"
});
You can’t perform that action at this time.