From 734513b9bea3c765eb1dcad741df757047b356a3 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Mon, 11 Feb 2019 12:59:24 -0500 Subject: [PATCH] Apply babel to .mjs files (#6253) --- packages/next/build/webpack-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/webpack-config.js b/packages/next/build/webpack-config.js index 954d84e3..47be46b1 100644 --- a/packages/next/build/webpack-config.js +++ b/packages/next/build/webpack-config.js @@ -242,7 +242,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer module: { rules: [ { - test: /\.(js|jsx)$/, + test: /\.(js|mjs|jsx)$/, include: [dir, /next-server[\\/]dist[\\/]lib/], exclude: (path) => { if (/next-server[\\/]dist[\\/]lib/.exec(path)) {