Skip to content

Commit

Permalink
Fix environment config
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Sep 13, 2020
1 parent bdd6ce8 commit 03df853
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03df853

Please sign in to comment.