diff --git a/packages/next/build/webpack.js b/packages/next/build/webpack.js index d5f4ac6e..9eddeb95 100644 --- a/packages/next/build/webpack.js +++ b/packages/next/build/webpack.js @@ -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',