diff --git a/lib/build.js b/lib/build.js index 45ddf608..f49e5d91 100644 --- a/lib/build.js +++ b/lib/build.js @@ -31,7 +31,7 @@ function haveBabelrc(functionsDir) { ); } -function webpackConfig(dir, {userWebpackConfig, useBabelrc}) { +function webpackConfig(dir, {userWebpackConfig, useBabelrc} = {}) { var config = conf.load(); var envConfig = conf.loadContext(config).environment; var babelOpts = { cacheDirectory: true }; diff --git a/package.json b/package.json index f9097279..80cd9db9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "netlify-lambda", - "version": "1.4.10", + "version": "1.4.11", "description": "Build and serve lambda function with webpack compilation", "homepage": "https://github.com/netlify/netlify-lambda#readme", "main": "bin/cmd.js",