mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Change module resolution extensions (#5801)
Same as https://github.com/zeit/ncc/pull/80
This commit is contained in:
parent
cefbb84230
commit
f79230db33
|
@ -205,7 +205,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer
|
|||
|
||||
const resolveConfig = {
|
||||
// Disable .mjs for node_modules bundling
|
||||
extensions: ['.wasm', '.mjs', '.js', '.jsx', '.json'].filter(Boolean),
|
||||
extensions: ['.wasm', '.js', '.mjs', '.jsx', '.json'],
|
||||
modules: [
|
||||
NEXT_PROJECT_ROOT_NODE_MODULES,
|
||||
'node_modules',
|
||||
|
|
Loading…
Reference in a new issue