You've already forked serverless-webpack
mirror of
https://github.com/encounter/serverless-webpack.git
synced 2026-03-30 11:37:58 -07:00
be20b6db5e
* Updated TypeScript example * Updated offline example * Updated multiple statically example * Updated include npm example * Update babel example * Updated dynamic example * Updated babel multi static example
33 lines
516 B
JavaScript
33 lines
516 B
JavaScript
const path = require('path');
|
|
const slsw = require('serverless-webpack');
|
|
|
|
module.exports = {
|
|
entry: slsw.lib.entries,
|
|
resolve: {
|
|
extensions: [
|
|
'.js',
|
|
'.json',
|
|
'.ts',
|
|
'.tsx'
|
|
]
|
|
},
|
|
output: {
|
|
libraryTarget: 'commonjs',
|
|
path: path.join(__dirname, '.webpack'),
|
|
filename: '[name].js'
|
|
},
|
|
target: 'node',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts(x?)$/,
|
|
use: [
|
|
{
|
|
loader: 'ts-loader'
|
|
}
|
|
],
|
|
}
|
|
]
|
|
}
|
|
};
|