diff --git a/src/LambdaFunction.js b/src/LambdaFunction.js index 0b6d92d2f..91116ff2a 100644 --- a/src/LambdaFunction.js +++ b/src/LambdaFunction.js @@ -16,7 +16,12 @@ const { now } = Date module.exports = class LambdaFunction { constructor(functionName, functionObj, provider, config, options) { - const { servicePath, serverlessPath } = config + // TEMP options.location, for compatibility with serverless-webpack: + // https://github.com/dherault/serverless-offline/issues/787 + // TODO FIXME look into better way to work with serverless-webpack + const servicePath = resolve(config.servicePath, options.location) + const { /* servicePath, */ serverlessPath } = config + const { name, handler } = functionObj const [handlerPath, handlerName] = splitHandlerPathAndName(handler)