We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f1062b commit ce5c02aCopy full SHA for ce5c02a
index.js
@@ -27,8 +27,11 @@ class ServerlessWebpack {
27
this.options = options;
28
29
if (
30
- _.has(this.serverless, 'service.custom.webpack') &&
31
- _.endsWith(this.serverless.service.custom.webpack, '.ts')
+ (_.has(this.serverless, 'service.custom.webpack') &&
+ _.isString(this.serverless.service.custom.webpack) &&
32
+ _.endsWith(this.serverless.service.custom.webpack, '.ts')) ||
33
+ (_.has(this.serverless, 'service.custom.webpack.webpackConfig') &&
34
+ _.endsWith(this.serverless.service.custom.webpack.webpackConfig, '.ts'))
35
) {
36
require('ts-node/register');
37
}
0 commit comments