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:
parent
80cb91ec87
commit
734513b9be
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue