Skip to content

Commit

Permalink
Apply babel to .mjs files (#6253)
Browse files Browse the repository at this point in the history
  • Loading branch information
developit authored and timneutkens committed Feb 11, 2019
1 parent 80cb91e commit 734513b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit 734513b

Please sign in to comment.