Commit 734513b9 authored by Jason Miller's avatar Jason Miller Committed by Tim Neutkens

Apply babel to .mjs files (#6253)

parent 80cb91ec
...@@ -242,7 +242,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer ...@@ -242,7 +242,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer
module: { module: {
rules: [ rules: [
{ {
test: /\.(js|jsx)$/, test: /\.(js|mjs|jsx)$/,
include: [dir, /next-server[\\/]dist[\\/]lib/], include: [dir, /next-server[\\/]dist[\\/]lib/],
exclude: (path) => { exclude: (path) => {
if (/next-server[\\/]dist[\\/]lib/.exec(path)) { if (/next-server[\\/]dist[\\/]lib/.exec(path)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment