From fe4b9e43e9bca3be9e9c052529fba9bec31bee44 Mon Sep 17 00:00:00 2001 From: Lambros Petrou Date: Sat, 6 Oct 2018 13:05:22 +0100 Subject: [PATCH] Fix netlify-lambda build process due to webpack3 requirement --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 98505ee..4052385 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,5 @@ -var webpack = require("webpack"); +// This is needed until netlify-lambda upgrades to webpack4 +var webpack = require("./node_modules/netlify-lambda/node_modules/webpack"); /* fix for https://medium.com/@danbruder/typeerror-require-is-not-a-function-webpack-faunadb-6e785858d23b */ module.exports = {