From 03df8538d542553a9e1b4403117fe7a79791f71c Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Sun, 13 Sep 2020 15:03:43 +0200 Subject: [PATCH] Fix environment config --- packages/next/build/webpack-config.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/next/build/webpack-config.ts b/packages/next/build/webpack-config.ts index 8b6463fd688cd..8f9753d16796e 100644 --- a/packages/next/build/webpack-config.ts +++ b/packages/next/build/webpack-config.ts @@ -791,7 +791,17 @@ export default async function getBaseWebpackConfig( }, output: { ...(isWebpack5 - ? { environment: { arrowFunction: false, const: false, forOf: false } } + ? { + environment: { + arrowFunction: false, + bigIntLiteral: false, + const: false, + destructuring: false, + dynamicImport: false, + forOf: false, + module: false, + }, + } : {}), path: outputPath, // On the server we don't use the chunkhash