Fix netlify-lambda build process due to webpack3 requirement

This commit is contained in:
Lambros Petrou 2018-10-06 13:05:22 +01:00
parent 397f8281a0
commit fe4b9e43e9

View file

@ -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 = {