mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Disable mjs support when in lambdas mode (#5712)
This commit is contained in:
parent
0d44623f74
commit
70cae4b2ea
|
@ -223,7 +223,8 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
|
|||
} : {}
|
||||
|
||||
const resolveConfig = {
|
||||
extensions: ['.wasm', '.mjs', '.js', '.jsx', '.json'],
|
||||
// Disable .mjs for node_modules bundling
|
||||
extensions: ['.wasm', !lambdas && '.mjs', '.js', '.jsx', '.json'].filter(Boolean),
|
||||
modules: [
|
||||
NEXT_PROJECT_ROOT_NODE_MODULES,
|
||||
'node_modules',
|
||||
|
|
Loading…
Reference in a new issue