1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix graphql issue with lambdas flag (#5755)

Fixes https://spectrum.chat/?t=604f6aa6-23f2-4358-8b0b-14e5810178dc
This commit is contained in:
Tim Neutkens 2018-11-27 22:20:13 +01:00 committed by GitHub
parent 818cf8e77a
commit 08e3396574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer
const resolveConfig = {
// Disable .mjs for node_modules bundling
extensions: ['.wasm', !lambdas && '.mjs', '.js', '.jsx', '.json'].filter(Boolean),
extensions: ['.wasm', '.mjs', '.js', '.jsx', '.json'].filter(Boolean),
modules: [
NEXT_PROJECT_ROOT_NODE_MODULES,
'node_modules',