mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Use same extensions webpack supports, with addition of .jsx (#4960)
This commit is contained in:
parent
d6676e6e2b
commit
e4a1e3746b
|
@ -137,7 +137,7 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
|
||||||
} : {}
|
} : {}
|
||||||
|
|
||||||
const resolveConfig = {
|
const resolveConfig = {
|
||||||
extensions: ['.js', '.jsx', '.json'],
|
extensions: ['.wasm', '.mjs', '.js', '.jsx', '.json'],
|
||||||
modules: [
|
modules: [
|
||||||
NEXT_PROJECT_ROOT_NODE_MODULES,
|
NEXT_PROJECT_ROOT_NODE_MODULES,
|
||||||
'node_modules',
|
'node_modules',
|
||||||
|
|
Loading…
Reference in a new issue