1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Apply babel to .mjs files (#6253)

This commit is contained in:
Jason Miller 2019-02-11 12:59:24 -05:00 committed by Tim Neutkens
parent 80cb91ec87
commit 734513b9be

View file

@ -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)) {