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
module: {
rules: [
{
test: /\.(js|jsx)$/,
test: /\.(js|mjs|jsx)$/,
include: [dir, /next-server[\\/]dist[\\/]lib/],
exclude: (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