1
0
Fork 0
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:
Tim Neutkens 2018-08-24 10:29:51 +02:00 committed by GitHub
parent d6676e6e2b
commit e4a1e3746b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,7 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
} : {}
const resolveConfig = {
extensions: ['.js', '.jsx', '.json'],
extensions: ['.wasm', '.mjs', '.js', '.jsx', '.json'],
modules: [
NEXT_PROJECT_ROOT_NODE_MODULES,
'node_modules',